You must be logged in to post your query.
Home › Forums › Chart Support › Issue with Months Name on Axis in Chart
Tagged: Chart Issues
Hi All,
I am facing an issue. When I attempt to make a chart, I am not able to make the bar on month label. i.e March month bar does come above the march month marker on x axis. Same with February, April & so on.
Kindly help me with the solution.
Thanks in advance.
@priyanka-kumari,
The labels are shown at every interval based on interval and intervalType. As you are setting the interval to 1 and intervalType to month, label is shown at ‘March 1, 2020’. And the x-value of the dataPoint / column that’s been shown is ‘March 2, 2020’. Alongside as you are hiding the date in axis label and just showing month, it may seem like not aligned. Showing date and month by setting valueFormatString to “DD MMMM” makes it clear that the position of labels is proper. Please take a look at this updated JSFiddle.
—- Manoj Mohan Team CanvasJS
You must be logged in to reply to this topic. Login/Register