Home Forums Chart Support Issue with Months Name on Axis in Chart

Issue with Months Name on Axis in Chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #28551

    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.
    Issues in Chart

    #28573

    @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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.