Home forums Using CanvasJS plotting graph

This topic contains 7 replies, has 2 voices, and was last updated by  Manoj Mohan 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25547

    Hii iam tring to plot the graph.I have two csv files one is having timestamp data, and second file having normal values.
    i have written if condition to seperate these two graphs.timestamp graph is working properly,in this graph i have used date.utc method. In normal graph x axis raeding deafault date and time values how to solve can you plz tell me.

    #25552

    @jameela,

    Can you kindly create JSFiddle reproducing the issue you are facing and share it with us so that we can look into the code, understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    #25684

    thanks for response

    #25685

    Hii in line graph iam giving x axis values randomly like this
    {x:43, y:54}
    {x:0, y:23}
    {x:24, y:14}
    {x:12, y:44}
    {x:54, y:14}
    but it is not plotting in linear order

    when we give x axis values in increasing order like this
    {x:10, y:54}
    {x:20, y:23}
    {x:30, y:14}
    {x:40, y:44}
    {x:50, y:14} then only it is plotting correctly.
    can u plz tell me how to solve this.

    #25697

    @jameela,

    CanvasJS just renders the dataPoints in the order passed by you, it doesn’t sort the dataPoints. However with few lines of code, you can sort dataPoints to render chart with linear order of x as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

    #25751

    thanks for your response now it is working properly

    #25752

    In line graph i want zoom particular area

    for ex: i want to see the values between 1 to 1000
    can you please suggest how to do this
    in this line graph iam reading data from csv file

    And one more query how to handle huge data like by days or weeks.

    #25768

    @jameela,

    You can programmatically zoom / pan to a region by setting viewportMinimum and viewportMaximum.

    And one more query how to handle huge data like by days or weeks.

    Can you kindly brief us more about your requirement along with some example or pictorial representation so that we can understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.