Multiple Datasources for a Single Chart?

2 posts, 0 answers
  1. Jayme
    Jayme avatar
    17 posts
    Member since:
    Jun 2014

    Posted 17 Feb Link to this post

    Is it possible to use 2 datasources with a single bar chart? I am trying to create a bar chart that would show gift card orders and redemption over time in the same chart.  I have 2 datasources, orders and redemptions.  (These are OData returning json to a kendo datasource).  

    I was hoping I could do something in the chart like:
     series: [
                    name: "Purchased",
                    field: "Amount",
                    aggregate: "sum",
                    categoryField: "PurchaseDate",
                name: "Redeemed",
                field: "RedeemedAmount",
                aggregate: "sum",
                categoryField: "RedeemedDate"


    Trying that directly didn't work so I was wondering if there is something I am missing?  Thanks so much,


  2. Iliana Nikolova
    Iliana Nikolova avatar
    2572 posts

    Posted 22 Feb Link to this post

    Hi Jayme,

    Apologies for the delayed reply.

    Kendo UI Chart can be only bound to a single data source - you will need to join the data from multiple data sources in order to display it in the chart.

    On a side note, the individual series data can be bound to separate arrays of data. For more details as well as an example check the following forum thread:

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