I'm not sure how dataItem parameter is chosen for labels template. The biggest problem with data chart I have is that I need to render the latest date value from the series for given time span. And it seems that kendo always provide beginning of time span. Therefore I've overridden categoryAxis.labels.template. I've also added aggregate function to series to get latest value. But it seems that kendo ignores aggregate function for labels calculation. I've made a small example to illustrate the issue. http://dojo.telerik.com/oTiYA
I want to render this values for category axis:
2014-05-27T21:00:00.000Z
2014-06-24T21:00:00.000Z
2014-07-29T21:00:00.000Z
But if I use dataItems I just get first n values from the series:
2014-05-20T21:00:00.000Z
2014-05-27T21:00:00.000Z
2014-06-03T21:00:00.000Z
I'm not really sure how to resolve the issue. It may be not so critical in this example as I can always revert to default rendering. But if it needs to be combined by the week it really becomes a big issue for me.
I want to render this values for category axis:
2014-05-27T21:00:00.000Z
2014-06-24T21:00:00.000Z
2014-07-29T21:00:00.000Z
But if I use dataItems I just get first n values from the series:
2014-05-20T21:00:00.000Z
2014-05-27T21:00:00.000Z
2014-06-03T21:00:00.000Z
I'm not really sure how to resolve the issue. It may be not so critical in this example as I can always revert to default rendering. But if it needs to be combined by the week it really becomes a big issue for me.