Our state of the art Gantt chart


Post by kamran812 »

Can we change the date format displaying in the screen shot in column and also on the top bar where dates are displaying.
we want the format like DD MMM (eg 02 Oct).

Attachments
Screenshot 2022-11-28 151402.png
Screenshot 2022-11-28 151402.png (65.16 KiB) Viewed 244 times

Post by mats »


Post by tasnim »

we want the format like DD MMM (eg 02 Oct).

And Here is how you can change the viewpreset header date format


gantt.viewPreset.headers[0].dateFormat = 'DD MMM';

Here is the result

res.png
res.png (16.24 KiB) Viewed 239 times

Post by kamran812 »

Hi Tasnim,
It is working fine for the header in viewPreset with your code but I can not get the column one think I'm missing something an error is coming when I'm setting the dataHelper format can you please help me with want to change the column dates format as well like we changed the header preset.


Post by marcio »

Hey kamran812

You need to config your column like this

{ type : 'startdate', format : 'DD MMM' },
Attachments
Screenshot 2022-11-28 at 14.48.04.png
Screenshot 2022-11-28 at 14.48.04.png (37.15 KiB) Viewed 233 times

Best regards,
Márcio


Post by kamran812 »

thank you so much, resolved


Post Reply