I am writing this message because I want to create my own custom ChronoUnitDatelineModel.
I would like to display a custom date when zooming.
For exemple i would like to not display the day but just the yyyy-mm-dd format. I don’t want moday to be displayed.
How can I override the on in flexGantt?
Where do I put it ?
How is it going to be load?
So you can copy the default model from there and customise it in a way that you like.
Then you have to call gantt.getTimeline().getDateline().setModel(new MyCustomModel()).
Please be advised that it is important that the model has many resolutions as otherwise zooming will not work nicely. The zoom is based on the MPP property (millis per pixel) and the dateline tries to find the best matching resolution for a given mpp value. The more options are available the easier it is to find a good one (good = making good use of the available space).