Home Forums Chart Support a question from a total newbie Reply To: a question from a total newbie

#24681

Scott,

a) Blank chart.
b) Using Ajax, get data and display on the chart.
c) Get more data from server as in b).

Please refer documentation on Live Updating Charts from JSON API & AJAX for step-to-step tutorial on rendering chart with data from server through AJAX call.

Allow data then to be zoomed.

Setting zoomEnabled property to true lets user zoom / pan the chart even in Live Charts.

Allow user to click on chart to create an event so I can see the position the user clicked at.

If you mean clicking on any dataPoint, please refer documentation on click event. Or if you like to click anywhere on the chart, you can bind click event to the chart-container and get to know the position of click. Please take a look at this JSFiddle which shows adding new dataPoint based on user clicked position.


Vishwas R
Team CanvasJS