Home forums Using CanvasJS line graph with multiple series from csv Tagged: dataPoints, line graph, Multip

This topic contains 3 replies, has 2 voices, and was last updated by  Indranil Deo 3 days, 6 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24913

    I would like to know how it is possible to get a line chart
    from separate CSV (somename.csv) file and how to get it as a dynamic chart ?

    #24920

    @sepetar,

    Please take a look at this documentation to render chart from CSV. Also, check this documentation on rendering dynamic chart. You can combine the given examples to achieve your requirement.

    ___________
    Indranil Deo,
    Team CanvasJS

    #24943

    Indranil Deo,
    if I use the code from yours document “Creating Charts from CSV” I can
    download a file from “https://canvasjs.com/services/data/datapoints.php?xstart=5&ystart=10&length=10&type=csv”
    (https in yours code) and I get the file named “dataPoints.csv”. My question
    is : how can I use the file dataPoints.csv directly in this code but without
    $.get(“https://canvasjs.com/services/data/datapoints.php?xstart=5&ystart=10&length=10&type=csv” … ?

    #24957

    @sepetar,

    CanvasJS render the charts based on the dataPoints passed to it. To read a CSV file/CSV Data you will have to use an AJAX request and convert the same to CanvasJS supported format. Please refer to this StackOverflow link for more information on AJAX calls.

    ___________
    Indranil Deo,
    Team CanvasJS

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

You must be logged in to reply to this topic.