Home forums Feature Requests & Feedback Load CanvasJS with JSON

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  yansonalvin97 3 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21378

    Hi Vishwas, I am wondering why is it the label in my chart is not working properly. Please see my jsfiddle. Why is it that the label is duplicated, particularly 2018-2019 label. The other 2018-2019 should be 2015-2016 base on my JSON but I’m getting a duplicate. Can you help me ?
    Thank you..

    #21584

    Priyanka M S
    Member

    @yansonalvin97,

    In the jsfiddle provided, a dataSeries is created for every unique ‘grade’. In that case, the first dataSeries has 4 dataPoints where as the remaining 5 dataSeries has 3 dataPoints each, for which the axisX labels are rendered accordingly. Also in any multiseries chart, the labels rendered along axisX will be that of the last dataSeries. Because of which you can see the label ‘2018-2019’ repeated. By disabling shared tootTip, you can observe this behavior clearly.

    __
    Priyanka M S
    Team CanvasJS

    #22023

    Hi thanks for the reply, So is there any way how can I resolve this issue? Thank you. Lastly can you simplify what is exactly the mistake in the chart? Sorry for the interruption

    • This reply was modified 3 months, 3 weeks ago by  yansonalvin97.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.