Home › forums › Using CanvasJS › Call 2 arrays in the datapoints[ ]
Tagged: graphs datapoints arrays dynamic
This topic contains 2 replies, has 2 voices, and was last updated by echhabra 5 months, 2 weeks ago.
Hi, I have 2 arrays which is dynamically being made with some algorithm and it all depends on the user inputs.
I want to plot each of the arrays in respective axis of the graph. That is call the 1 array(with dates) for the x-axis values and 1 array with numbers for y-axis.
So how do I call the 2 arrays in the datapoints[ ] ?
In this case you have to parse the arrays according to data format. Here is an example.
The code works perfectly. Thanks you so much. You are the best!
You must be logged in to reply to this topic.
ASP.NET MVC Charts
ContactSales EnquiriesSupport ForumTwitter Support Handle