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 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7233

    dennisnguy
    Participant

    Hi Everyone,

    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,

    #9946

    Arun Prakash
    Member

    Hello Everyone,

    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,

    #9950

    Sanjoy
    Moderator

    Hi,

    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.
    http://canvasjs.com/forums/topic/how-can-i-plot-values-from-txt-file/
    http://canvasjs.com/forums/topic/graph-a-csv-file/#post-6371

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

You must be logged in to reply to this topic.