Home › forums › Using CanvasJS › data/index label on JSON
Tagged: data label, index label
This topic contains 4 replies, has 3 voices, and was last updated by cikadpm 4 months, 1 week ago.
hi, i am using external json file to get my data on my graph. can i add data/index label on my highest/lowest data on my graph??
You can find the minimum and maximum y-values and assign the indexLabels, after parsing the data from an external JSON as shown in this JSFiddle.
Priyanka M S
Hi @priyanka thank you for answering.
i tried to follow your code but it’s not working for me (my case). can u please take a look at my code at JSFiddle
i’ve been figuring it out for hours but still not solved what actually happend.
As of now, x-value can either be numeric or a dateTime whereas y-value should be number. We observe that you are passing both the values as string, changing it to numeric or dateTime values should work fine. Please take a look at this updated JSFiddle.
it works!! thank you Vishwas :D
You must be logged in to reply to this topic.