This is a migrated thread and some comments may be shown as answers.

Bug with chart tooltip dataItem in latest version of dataviz

1 Answer 24 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Kristian
Top achievements
Rank 1
Kristian asked on 03 Oct 2013, 08:44 AM
Hi

Im currently evaluating the dataviz charts for a project. While doing this I discovered something that looks like a bug.

Using the latest version 2013.2.918, accessing content other than value from dataItem in tooltip is not possible when categoryAxis.type is set to date.
In this jsFiddle the tooltip contains the text unavailable where the label property should be: http://jsfiddle.net/E5Cew/

If I switch to the 2013.1.319 version it seems to work as expected.
See this jsFiddle: http://jsfiddle.net/6rJVq/ 

Is this a known bug that will be fixed in next version? It is a requirement for our project and i can't recommend dataviz unless this is fixed.

Regards
Kristian

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Oct 2013, 02:45 PM
Hi,

This is breaking change that we introduced to improve the consistency of the series aggregates. Previously, that chart would not call the aggregate if a particular date contained only one point.
They're now executed for each date, even if it contains only a single point. The data item you see is the result from the aggregate.

We're considering our options to fix this confusing behavior and preserve the data item, while still calling the aggregate.
I know it sounds confusing, but getting the old behavior back is easy:

series: [{
    aggregate: function (values, series, dataItems) {
        return dataItems[0];
    },
    ...
}]


Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Kristian
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or