Add SnapToSeries Option to XY chart

Hi everyone,

I’m currently configuring an XY Chart in Perspective similar to the Vision Chart, but I’ve noticed that the SnapToSeries option is missing. In Vision, when you hover over the chart, the cursor automatically snaps to the nearest data point, which is very useful.

I’d like to replicate this functionality in Perspective. I’ve already looked into the AMCharts documentation and found that such an option exists there, but I’m not sure how to implement it within Perspective.

Has anyone achieved this behavior, or can suggest the best way to enable a “snap-to-nearest datapoint” interaction in the Perspective XY Chart?

I don't know if this is what you are exactly looking for.

In series>line>apperarance>bullets>enabled.
If you check that to true and hover over the xy chart you can see the value on the tooltip, since the tooltip of the bullets are enabled by default.

Hi thanks for posting, i would like to share the link from AMcharts
https://www.amcharts.com/docs/v4/concepts/chart-cursor/#Relation_to_series. If you go to the section snap to data items and interact with chart, you will see the cursor will automatically take you to next datapoint when you hover. But when we hover over the XY chart with cursor enabled it will interpolate between two data points which i don’t want. I want the behaviour of cursor as you see in the shared link.

Enabling bullets won't interpolate values, but it only shows values on the tooltip when you hover over the bullets not anywhere else on the line graph.

Thanks for the help Cose. I have used the Apex Chart from th link below which has the option available Embr Charts | Musson Industrial

2 Likes