Is it possible to bind a column chart to individual fields in a MVVM viewModel?
We have a calculator with numerous inputs from the with the end result being three main total fields. So these fields are actually calculated based on calculations which doesn't make them quite appropriate for a dataSource object. E.g.
var
myViewModel = kendo.observable({
totalIncome:
function
(){
/* get expressions to gather all the input provided by the user */
return
sumOfGetExpressionsAbove;
},
totalExpenses:
function
(){
/* get expressions to gather all the input provided by the user */
return
sumOfGetExpressionsAbove;
},
/*other fields/properties related to the calculator for various types of incomes, expenses, assumptions etc. These all make up part of the fields used to calculate totals */
})
So the total fields are used in two divs show the totals but we also want to show this in a simple 2 column bar chart.
Is this possible? I don't see any way to bind a chart to two separate fields instead of a datasource?