I am trying to configure a kendo line chart using MVVM. I am binding it to a ObservableObject.
var viewModel = kendo.observable({
issues: [
{ month: new Date('1/1/2013'), cnt: 10 },
{ month: new Date('2/1/2013'), cnt: 20 },
{ month: new Date('3/1/2013'), cnt: 30 },
{ month: new Date('4/1/2013'), cnt: 20 },
{ month: new Date('5/1/2013'), cnt: 10 }
],
cancels: [
{ month: new Date('1/1/2013'), cnt: 5 },
{ month: new Date('2/1/2013'), cnt: 10 },
{ month: new Date('3/1/2013'), cnt: 15 },
{ month: new Date('4/1/2013'), cnt: 10 },
{ month: new Date('5/1/2013'), cnt: 5 }
]
});
When I specify the data-bind attribute as "source: issues" I get a single series plotted on the chart..
My question is how can I bind the chart to plot both the "issues" data and "cancels" data from the ObservableObject
var viewModel = kendo.observable({
issues: [
{ month: new Date('1/1/2013'), cnt: 10 },
{ month: new Date('2/1/2013'), cnt: 20 },
{ month: new Date('3/1/2013'), cnt: 30 },
{ month: new Date('4/1/2013'), cnt: 20 },
{ month: new Date('5/1/2013'), cnt: 10 }
],
cancels: [
{ month: new Date('1/1/2013'), cnt: 5 },
{ month: new Date('2/1/2013'), cnt: 10 },
{ month: new Date('3/1/2013'), cnt: 15 },
{ month: new Date('4/1/2013'), cnt: 10 },
{ month: new Date('5/1/2013'), cnt: 5 }
]
});
When I specify the data-bind attribute as "source: issues" I get a single series plotted on the chart..
My question is how can I bind the chart to plot both the "issues" data and "cancels" data from the ObservableObject