Hi, i'm currently experimenting with kendoUI, and it looks pretty good and easy to use.
I have a question regarding binding data to a multiple series chart. My objective would be binding local data from a datasource, and then move on to binding remote JSON data to the chart.
Starting from the scatter line multiple series example at http://demos.kendoui.com/dataviz/scatter-charts/scatter-line.html, i tried putting the provided data into a data source:
However, i can't understand how to bind this data to the chart. Of course, i will need to specify the chart's datasource as the defined variable, but in single-series charts i must specify the columns from the data source. How can i configure the chart to display correctly the legend (name field) and each value?
I have a question regarding binding data to a multiple series chart. My objective would be binding local data from a datasource, and then move on to binding remote JSON data to the chart.
Starting from the scatter line multiple series example at http://demos.kendoui.com/dataviz/scatter-charts/scatter-line.html, i tried putting the provided data into a data source:
var
ds =
new
kendo.data.DataSource ({
data: [
{
"name"
:
"0.8C"
,
"values"
: [[10, 10], [15, 20], [20, 25], [32, 40], [43, 50], [55, 60], [60, 70], [70, 80], [90, 100]]},
{
"name"
:
"1.6C"
,
"values"
: [[10, 40], [17, 50], [18, 70], [35, 90], [47, 95], [60, 100]]},
{
"name"
:
"3.1C"
,
"values"
: [[10, 70], [13, 90], [25, 100]]}
],
});