Home Forums Report Bugs X-axis labels are not aligned vertical with the data points Reply To: X-axis labels are not aligned vertical with the data points

#20356

@mhdajmalik,

You can use one of the valid JavaScript date-time formats. When you use x: new Date(2018,04,09),, 4 corresponds to May where as when you use x: new Date(“2018-04-09”),, 4 corresponds to April. Because of change in month, you may observe label properly positioned to the dataPoint in one case and not positioned in another case. As of now we don’t have option to control the starting point of the axis labels, however you can try axis interval and intervalType to fit into your requirement. If that doesn’t help you out, kindly create jsfiddle with your requirement so that we can understand it better and help you out?


Vishwas R
Team CanvasJS