SheerazAreeb
Posts: 3
Joined: Wed Oct 30, 2024 10:38 am

How to filter datapoint group instead of chart in highcharts

Hi,

I want to filter datapoint group of metrics in highcharts when clicked on one of its points it should highlight group of points instead of series. example in the image attached
Screenshot 2024-10-30 162245.png
Screenshot 2024-10-30 162245.png (63.2 KiB) Viewed 189 times
when click China it should only highlight China data points both corn and wheat and not the series of corn. Is this achievable in highcharts
andrzej.b
Site Moderator
Posts: 307
Joined: Mon Jul 15, 2024 12:34 pm

Re: How to filter datapoint group instead of chart in highcharts

Hi,

Welcome to our forum and thanks for contacting us with your question!

It is possible. If you set tooltip.shared option to 'true' and customize state assignment for points on hover, you can get focus per category, not per series.
I've prepared for you a demo with both points implemented: https://jsfiddle.net/BlackLabel/1aum38gh/

Let me know if that is what you were looking for!

Best regards,
Andrzej
Highcharts Developer
SheerazAreeb
Posts: 3
Joined: Wed Oct 30, 2024 10:38 am

Re: How to filter datapoint group instead of chart in highcharts

Thaks Andrzej is exactly what I was looking for

Return to “Highcharts Usage”