Home Forums Chart Support data/index label on JSON

data/index label on JSON

Viewing 5 posts - 1 through 5 (of 5 total)
  • #23316

    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??

    #23319

    @cikadpm,

    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
    Team CanvasJS

    #23353

    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.

    #23358

    @cikadpm,

    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.


    Vishwas R
    Team CanvasJS

    #23383

    it works!! thank you Vishwas :D

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

You must be logged in to reply to this topic.