Grouped data for every series

3 posts, 0 answers
  1. Raido Valgeväli
    Raido Valgeväli avatar
    26 posts
    Member since:
    May 2008

    Posted 29 May 2013 Link to this post

    Good morning

    I have 2 separate data sources with the same length and same values for the category field.
    [{"category":"a","value":1},{"category":"b","value":2},{"category":"c","value":3}]
    and
    [{"category":"a","value":2},{"category":"b","value":3},{"category":"c","value":4}]

    Is it possible to apply these data sources to series1 and series2 on the same line chart?

    Thanks.
     Raido

  2. Raido Valgeväli
    Raido Valgeväli avatar
    26 posts
    Member since:
    May 2008

    Posted 29 May 2013 Link to this post

    Let me clarify a bit. In my case the category axis is actually of date type and the same number of points is not guaranteed. Would it still be possible to feed the data objects to series? I could do something like this on Scatter chart, but then I'd lose Area and Column options.
  3. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 31 May 2013 Link to this post

    Hello Raido,

    If you have 5 points in the first series you should have 5 points in the second too. If you haven't that much points in the second series you should fill the rest with value null.

    I hope this helps.

    Regards,
    Hristo Germanov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top