Home forums Using CanvasJS data/index label on JSON

This topic contains 4 replies, has 3 voices, and was last updated by  cikadpm 1 week, 2 days ago.

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

    cikadpm
    Member

    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

    Priyanka M S
    Member

    @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

    cikadpm
    Member

    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

    Vishwas R
    Keymaster

    @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

    cikadpm
    Member

    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.