jQuery UI Widgets Forums Chart Data in CSV

This topic contains 2 replies, has 2 voices, and was last updated by  brogen 9 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Data in CSV Posts
  • Data in CSV #75690

    brogen
    Participant

    Hello,

    I’m trying to make a chart, by importing DATA from CSV.

    At the moment, I’m trying with demo data :

    // prepare chart data
    var sampleData = [
    { Day:’Monday’, Keith:30, Erica:15, George: 25},
    { Day:’Tuesday’, Keith:25, Erica:25, George: 30},
    { Day:’Wednesday’, Keith:30, Erica:20, George: 25},
    { Day:’Thursday’, Keith:35, Erica:25, George: 45},
    { Day:’Friday’, Keith:20, Erica:20, George: 25},
    { Day:’Saturday’, Keith:30, Erica:20, George: 30},
    { Day:’Sunday’, Keith:60, Erica:45, George: 90}
    ];

    I want something like :

    // prepare chart data
    var sampleData = my_file.csv

    How can I write that, and which structure does have my csv file ?

    Thanks

    Sorry for my English.

    Data in CSV #75693

    Peter Stoev
    Keymaster

    Hi brogen,

    Please, refer to: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/javascript_chart_series_conditional_colors.htm?arctic which demonstrates how to populate a Chart with CSV data.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Data in CSV #75697

    brogen
    Participant

    Hi Peter !

    A big thanks !!! I’m trying to generate a simple line chart from CSV, for arround 1 week now, and I Finally got it now !!

    I’ll continue to customize my chart

    Thanks for all !

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

You must be logged in to reply to this topic.