I know that I can toggle series 'x' visibility on a multi-series chart using
chartName.control.series[x].isVisible = true/false;
and I can loop through the series to find which one I want to toggle.
However, I have a situation where there is only one series in a line chart but it is split out by a hierarchy, so I effectively get one line per brand. I want to toggle the visibility on each individual line.
I can get the points on the line I need by a variation of
chartName.control.series[0].getGroupedPoints().forEach(function (i) { console.log(i[0]._groupingSource[0].members[0].caption);})
but I don't know how to show or hide them.
Surely there should be a simple way to do this?