5 Answers, 1 is accepted
This is not supported and I am afraid there isn't any workaround. The field names should be valid JavaScript names.
Kind regards,Daniel
the Telerik team
What isn't clear is why doesn't Kendo validate all such cases? Why make the developer process the field names, rather than Kendo doing it itself?
Related thread: http://www.kendoui.com/forums/dataviz/chart/cannot-provide-a-number-as-a-key-in-json---get-an-unexpected-number-error.aspx
We do not validate the names or modify them because this will add an extra overhead which is not needed in most cases. The names should be valid identifiers for JavaScript.
Regards,Daniel
the Telerik team
I know that there's a fix for this on grids, by adding brackets (http://jsbin.com/evapes/3/edit?html,js,output) or using the "from" field (http://jsbin.com/xuheve/3/edit?html,js,output).
But is there a fix for charts?
I have this situation where I can't control the fields in my data and some contain dots ("U.S."). I've tried using brackets and the "fromField" to no avail. Is there a way to get this working in charts.
Here's a dojo. If I remove the dots from "U.S." it works, but with them it breaks.
http://dojo.telerik.com/@dmathisen/AXUNi
The from option seems to be working at least on my side. Please check this example and let me know if it works for you.
Regards,
Daniel
Telerik by Progress