Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coloring Specific Columns #80

Open
martinfruehmorgen opened this issue May 29, 2022 · 6 comments
Open

Coloring Specific Columns #80

martinfruehmorgen opened this issue May 29, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@martinfruehmorgen
Copy link

Hello,

Is there a way to add a background color to specific columns (this means dates), for example all the weekends?

Thanks,
Martin

@V-Py
Copy link
Collaborator

V-Py commented Jun 1, 2022

Hello,
The problem here is that the columns strokes are in fact a background-image.
So it seems possible to make a pattern since I managed to add coloured columns on the img but will be very tricky to use it to add a background color to specific columns with this configuration for now.

If you want to make some tests go to src\column\Columns.svelte
image

It's a good enhancement idea though

@V-Py V-Py added the enhancement New feature or request label Jun 1, 2022
@Primenotes
Copy link

Hello, The problem here is that the columns strokes are in fact a background-image. So it seems possible to make a pattern since I managed to add coloured columns on the img but will be very tricky to use it to add a background color to specific columns with this configuration for now.

If you want to make some tests go to src\column\Columns.svelte image

It's a good enhancement idea though

"background-position-x" has to depend on the start date and the background image has to be adjusted.
I will look into this and create an option to color weekends.

@martinfruehmorgen
Copy link
Author

Hi Primenotes,

Were you able to create an option to color weekends?

Thanks,
Martin

@V-Py
Copy link
Collaborator

V-Py commented Sep 7, 2022

@martinfruehmorgen and @Primenotes
I might have a solution coming soon if it's for weekends only.
I'm currently figuring out the best way to make it more configurable (ie highlighting specific days, months, weeks, years) depending on the unit selected for the columns.
But if your need is only about week-ends I can focus on this and try to publish a light version for now

@kevinleto-informaticon
Copy link

In the current version it works, but if the size of the Gantt is modified, all highlighted columns will be displayed wrongly (due to the background image, IMO).
I've tested it on version v3.0.4-beta due to this bug on the v4.0.9-beta.

@BlueFoxPrime
Copy link
Contributor

This can be closed after #152 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants