In the below code I'm hiding the series that contain zero data
useEffect(() => {
if (props.bicycleType === "ROAD_BIKE")
roadBikeSeries.forEach((series) => {
if (series.data.length === 0) {
ApexCharts.exec("RoadBike", "hideSeries", series.name);
} else {
ApexCharts.exec("RoadBike", "showSeries", series.name);
}
});
}, [roadBikeSeries]);
Based on the screenshot as you can see Straight Up and Lower than TT have 0 data and they are hidden. I want to make them not clickable in my legend. Is it possible to make specific series not clickable?