Skip to content

feat+doc: added GGanttChart/highlight-sundays#95

Open
N0ah-S wants to merge 2 commits intozunnzunn:masterfrom
N0ah-S:visual-weekend-clues
Open

feat+doc: added GGanttChart/highlight-sundays#95
N0ah-S wants to merge 2 commits intozunnzunn:masterfrom
N0ah-S:visual-weekend-clues

Conversation

@N0ah-S
Copy link
Contributor

@N0ah-S N0ah-S commented Feb 10, 2024

Why

This functionality partially already exists as 'highlightedDays' but I'd prefer a less involved version for the application using the library, as well as a 'date safer' method.

What

If the option 'highlight-sundays' in GGanttChart is set to true, sundays will be visually highlighted in the chart with a mild opaque color and the dates text color will be changed to a dark red.

Example/Reference

grafik

@zunnzunn
Copy link
Owner

I'll think about how this could be generalized, though having this as an extra option doesn't hurt.

@N0ah-S
Copy link
Contributor Author

N0ah-S commented Mar 19, 2024

Great, if you have any suggestions to improve that feature, I'd be happy to implement them.

albadedan added a commit to albadedan/vue-ganttastic that referenced this pull request Dec 4, 2024
Fix zunnzunn#125
[feat] re-working of zunnzunn#95

Adds new props to handle different methods of highlighting dates and hours.

- `highlighted-days-of-week` to handle highlighting the same day or days every week without having to calculate their dates. Useful for highlighting weekends. Set to [0, 6].
- `highlighted-dates` for when you want to highlight specific dates.
- `highlighted-hours` for when you are using hour precision.

`highlighted-units` probably depreciated now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants