Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Multiple Datasources for a Single Chart?

$
0
0

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",
                data:dsOrders,
                field: "Amount",
                aggregate: "sum",
                categoryField: "PurchaseDate",
            },
        {
            name: "Redeemed",
            data:dsRedemptions,
            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,

Jayme


Viewing all articles
Browse latest Browse all 78072

Trending Articles