How to customize the timeline data format using Google Gantt Chart

0
Hi, I am building an app using Google Gantt Chart to visualize my tasks, but I found that the chart automatically set the bottom timeline according to how long the tasks take. For example, if the span of time is short, it is “Monday”, if it is long, it is “Sep 11”. But I don’t want that. Can I fix the timeline format to show the date as “DD/MM/YY” instead of “Monday” 
asked
1 answers
3

you can build it with license lib https://stackblitz.com/edit/react-gantt-basic?file=package.json

 

or modify the google gantt again by fork this repo https://github.com/Criccle/GoogleGantt/blob/master/src/GoogleGantt/widget/GoogleGantt.js

 

but i think the google gantt lib still not support format date , the issue still open https://github.com/google/google-visualization-issues/issues/2870

 

this option

 

hAxis: {
            format: 'M/d/yy',
            gridlines: {count: 15}
          }, 

 

only work in line chart, but can not using in gantt chart

 

 

 

answered