jQuery UI Widgets Forums Chart array as datafield in a line chart

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 11 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • array as datafield in a line chart #9692

    Hi,
    I have used a stacked line chart
    the data for the line chart comes from the web service, which is dynamic. so i dont know in advance the number of lines.
    So i put that in an array.
    but when i provide the array variable as data field in my series. it returns only the 1st plot.
    if i try with indices, it’s not working.
    Any solution,…?

    array as datafield in a line chart #9695

    just a sample for making it clear:
    $.each(……..,func(){
    array_obj =
    {
    Id: obj.Id,
    Values : [0,1,2,3,4]
    }
    sampleData.push(array_obj);
    });

    this sampleData is my source
    I need a line chart with the category axis Id,
    and the line series with 4 lines(for this sample),

    array as datafield in a line chart #9742

    Dimitar
    Participant

    Hello harikalaprasath,

    Could you please provide us with your entire chart code so that we may better be of help?

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.