Home › forums › Using CanvasJS › Select 2 points on a series for analysis
This topic contains 2 replies, has 3 voices, and was last updated by Sanjoy 3 years, 3 months ago.
I am new to CanvasJS and would like to know if it supports some features I am looking for.
1. Could I select 2 points on a series of spline chart and save the x, y values for later analysis.
For example I use the mouse click on point 1, store x1, y1 values. Hold down the shift button, click on point 2, store x2, y2 values. By the way, I still need to use zoom and span features.
2. Could I store data from dynamic real-time one come in to a spline chart?
3. Could I read data from a file and display using spline chart?
Thanks in advance,
I’m also looking for this feature…
If there is a way to do this with CanvasJS can you please let me know?
Thanks in Advance,
For storing dataPoints after shift+click you can use click event along with window.event.shiftKey. Here is an example with zoom-Pan.
And for reading data from a file you can refer following threads and this JSFiddle.
How can I plot values from .txt file ?
Graph a CSV file
You must be logged in to reply to this topic.