taitems / jQuery.Gantt

jQuery Gantt Chart
http://taitems.github.io/jQuery.Gantt/
MIT License
952 stars 304 forks source link

Customisation of CSS and texts #174

Closed jaukia closed 9 years ago

jaukia commented 9 years ago

It would be great if there was a way to customise the styling of the chart without forking the library. Some things that would be useful:

usmonster commented 9 years ago

Hi @jaukia! These are all reasonable things that users of the plugin might want, though I think most of these can be done with CSS--no need to fork the project.

Pretty much every chart component has a CSS class, so hiding/showing should be straightforward. You should also be able to add text to elements in the way you describe by adding content styles to certain ::before and/or ::after pseudo elements (examples). Row height is also specified in the CSS, though you're right that the background image might not scale accordingly without additional CSS (or perhaps a different image? I haven't checked, but feel free to file this separately if it's an issue for you).

I'm not sure the loader will change functionally, though visual changes can be made via CSS. It does make better sense, though, to only overlay the data panel of chart when zooming (instead of the whole chart), so please make that a separate issue and I'll take a look!

Thanks, and let me know what you think. I'll close this issue in the meantime.