Multiple data sources for multiple series

2 posts, 0 answers
  1. Philip
    Philip avatar
    70 posts
    Member since:
    Apr 2008

    Posted 16 Jul 2014 Link to this post

    Is it possible to use multiple data sources as multiple series in a chart?

    For example
    01.var Product1 = [
    02.    {"Date": 2012-01-01, "Qty": 2},
    03.    {"Date": 2012-02-01, "Qty": 10}
    06.var Product2 = [
    07.    {"Date": 2012-01-01, "Qty": 13},
    08.    {"Date": 2012-02-01, "Qty": 17}

    Can I use these two data sources in the same line chart?
  2. T. Tsonev
    T. Tsonev avatar
    2794 posts

    Posted 18 Jul 2014 Link to this post


    The individual series data can be set to arrays of objects, as in your example. Field bindings will still work in this case.
          series: [{
            name: "Product 1",
            data: Product1,
            field: "Qty",
            categoryField: "Date"
          }, {
            name: "Product 2",
            data: Product2,
            field: "Qty",
            categoryField: "Date"

    -- Live demo --

    Note that remote binding is not supported in this case. The data needs to be available in advance.

    I hope this helps.

    T. Tsonev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top