Hi,
I have a data that is formatted like that:
I want to render, on the same chart, one line per type ("a" and "b"). However, I don't know how to write the code for that. The problem comes to the fact that it seems Kendo Chart requires to set the data source to enable the "date" category axis. However, the data source only supports one set of data.
Which config should I write to make this work? I could potentially re-work my JSON so that categories are sideloaded, but I like the idea of having this like this, as it would allows me to have missing data for some data set.
Thanks!
I have a data that is formatted like that:
{
"a"
: [
{
"date"
:
"2014-01-01"
,
"value"
: 1
},
{
"date"
:
"2014-01-02"
,
"value"
: 5
}
],
"b"
: [
{
"date"
:
"2014-01-01"
,
"value"
: 3
},
{
"date"
:
"2014-01-02"
,
"value"
: 6
}
]
}
I want to render, on the same chart, one line per type ("a" and "b"). However, I don't know how to write the code for that. The problem comes to the fact that it seems Kendo Chart requires to set the data source to enable the "date" category axis. However, the data source only supports one set of data.
Which config should I write to make this work? I could potentially re-work my JSON so that categories are sideloaded, but I like the idea of having this like this, as it would allows me to have missing data for some data set.
Thanks!