pradeepkumarreddy
Posts: 16
Joined: Mon Jun 20, 2022 1:58 pm

How to represent overlapping filter criteria on data points using highcharts

Filter by criteria1 : Resting, Exercise, etc
Filter by criteria2 : Within range, out of range, undetermined

There can be overlap of these filter criteria on data points, like for example Resting state data point can be in both WithinRange and OutOfRange.

If it is only one filtering criteria, then i'm using scatter series for each state(Resting, exercise, etc). If i have to combine multiple filters, then i'm confused about how to represent it in graph.

How to represent these kind of data using HighCharts ?
Please provide some ideas
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: How to represent overlapping filter criteria on data points using highcharts

Hello pradeepkumarreddy!
Thanks for contacting us with your question!

I would do it by checking if some series have the desirable name (or index, or whatever you want) and conditionally setting the visibility of each series. You can check it in the demo below. If I misunderstand your problem, please recreate your issue in the online editor that I could work with (e.g. using the demo below).

Demo: https://jsfiddle.net/BlackLabel/xd0knvqe/
API Reference: https://api.highcharts.com/highcharts/chart.events.load
https://api.highcharts.com/class-refere ... setVisible

I am looking for your response.
Kind regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”