worktile / ngx-gantt

A modern and powerful gantt chart component for Angular
http://gantt.ngnice.com
MIT License
252 stars 70 forks source link

Additional header #451

Open NgKX1641 opened 7 months ago

NgKX1641 commented 7 months ago

Hello, I see there is PrimaryDatePoints and SecondaryDatePoints for headers, is there a way for me to add a new header? I am trying to display the year, week, day of week, and date at the same time.

walkerkay commented 7 months ago

Currently not possible, i have another idea,you can try using a custom view.

You can try PrimaryDatePoints to display both year and week, and secondaryDatePoints to display both week and date. However, if that's the case, you need to set the cellWidth in ViewOptions to be larger.

https://gantt.ngnice.com/components/custom-view https://github.com/worktile/ngx-gantt/tree/master/example/src/app/gantt-custom-view

NgKX1641 commented 7 months ago

Yes I have thought of this approach, but having year and week in the same field makes year display repeatedly along with every week, so year is just repeating over and over again.