Home forums Using CanvasJS Input from external file for logarithmic graph

This topic contains 4 replies, has 2 voices, and was last updated by  Raghavi 2 weeks, 4 days ago.

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

    Raghavi
    Member

    Here I am trying to draw the graph using canvasjs. I am getting the input from the external API using an AJAX call. And storing the variables X and Y in the array. Providing that as an input to that canvasjs library for drawing the graph. But I am not able to draw the graph. The below snippet is the one I have done.

    This is the jsfiddle

    #15964

    Suyash Singh
    Moderator

    @raghavi,

    Please take a look at this updated jsfiddle.

    ___
    Suyash Singh
    Team CanvasJS

    #15965

    Raghavi
    Member

    Actually I have a doubt. Why we are taking log for Y-axis instead of X-axis

    #15967

    Suyash Singh
    Moderator

    @raghavi,

    The jsfiddle that you have provided is a workaround of log scale on axisY.

    Providing that as an input to that canvasjs library for drawing the graph. But I am not able to draw the graph. The below snippet is the one I have done.

    Using the logarithmic scale on axisY completely depends on your requirement. From version 1.9.0 CanvasJS supports logarithmic scale on both axisX & axisY.

    Please take a look on the documentation page on logarithmic axis for more info.

    ___
    Suyash Singh
    Team CanvasJS

    #15969

    Raghavi
    Member

    Yeah.. Thank you so much.

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

You must be logged in to reply to this topic.