Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

get current index of point in tooltip

Ramesh Mahada
5 years ago Jul 18, 2016 4:02am
Olli Tietäväinen
5 years ago Jul 18, 2016 9:38am

Hi,

if I looked at it correctly, this.points contains the values of each series at current x position, not all the values of the current series. So if you have only one series, there will always only be one item in the points array. Maybe you could calculate the speed in a different series and make that not visible; then you could display the value in the tooltip with points[1] (or whichever is the index of the speed series).

Hope this helps,
Olli

Ramesh Mahada
5 years ago Jul 19, 2016 2:41am
Olli Tietäväinen
5 years ago Jul 19, 2016 9:03am