amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
350 stars 93 forks source link

Triggering "hover" state for series' bullets on current cursor position #164

Closed luktom closed 2 years ago

luktom commented 2 years ago

Hi, in v4 it is possible to trigger the "hover" state for a series' bullet on current cursor position. It is described here: https://www.amcharts.com/docs/v4/concepts/chart-cursor/#Series_bullets

Is it possible in v5, if not, do you plan to implement it?

martynasma commented 2 years ago

Maybe this demo will help: https://codepen.io/team/amcharts/pen/VwMbpjQ

luktom commented 2 years ago

@martynasma thanks for the demo. It contains only one series, how to do that easily for multiple series?

I need to manually find the closest series to current cursor position. Would be nice to have the reference to the current closest series already in the cursor object or to pass the hover event to the bullet like in v4.

martynasma commented 2 years ago

We're adding tooltipSeries to XYChart in next version, which you'll be able to refer to for a list of series that tooltip is being shown for.

martynasma commented 2 years ago

Implemented in 5.0.19.

[5.0.19] - 2021-12-27

Added

Fixed

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.

luktom commented 2 years ago

@martynasma with that enhancement it is possible now to manipulate the bullets when there are multiple series. Many thanks for that :)