You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have scatter line chart with two datasets and tooltips set to "label" mode. First dataset have 2 values and second 3 values.
In this configuration some values have broken tooltips - tooltip will not show and chart will fail in console with message "Chart.bundle.js:11561 Uncaught TypeError: Cannot read property '_index' of undefined".
This is because first dataset is missing first value.
This was fixed in #3400 with the new 'x' tooltip mode. It retrieves all items that hit test at the mouse position.
The 'label' mode was more appropriately named 'index' starting in #3400 to better reflect how it works. (The old mode still works so not charts will break).
The best way to fix this issue would be to use the new 'x' mode. See the gif below to get an idea of how the new mode works
I have scatter line chart with two datasets and tooltips set to "label" mode. First dataset have 2 values and second 3 values.
In this configuration some values have broken tooltips - tooltip will not show and chart will fail in console with message "Chart.bundle.js:11561 Uncaught TypeError: Cannot read property '_index' of undefined".
This is because first dataset is missing first value.
Can be reproduced by this code - http://codepen.io/kolinger/pen/YWqyxg?editors=0010
Try hover on
x=Jan 12, 10AM
y=15
Tested with lastest version (2.1.4).
The text was updated successfully, but these errors were encountered: