enter image description here
I have created a Gantt chart to display users' in-progress tasks, fetching data from a SharePoint list using a CAML query. The data is successfully displayed on the graph, but the x-axis is showing an incorrect date format.
I want the dates to appear in the 'MMM d' format (e.g., Jan 8, Jun 15). I have already set this format in the code as shown below:
var options = {
height: 400,
gantt: {
trackHeight: 40,
criticalPathEnabled: false, // Optional
labelStyle: { fontName: "Arial", fontSize: 12 },
axisTitlesPosition: "out"
},
hAxis: {
format: 'MMM d' // Expected format: Jan 8, Jun 15, etc.
}
};
I have attached a pic , PFA..
I have tried to change the format dates but have been unable to success in that