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 11 months, 3 weeks ago.
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
Please take a look at this updated jsfiddle.
Actually I have a doubt. Why we are taking log for Y-axis instead of X-axis
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.
Yeah.. Thank you so much.
You must be logged in to reply to this topic.