In the chart, I currently have 4 series. At the moment, only 2 of them are visible while the other 2 are hidden when the chart first loads.
As the user zooms in on the chart, the visibility of the series changes dynamically.
I need help figuring out how to create a legend that shows only the 2 visible series.