I have a problem, not how to set it to display a series at once and when one is selected automatically disable the other and that when you start the animation only shows the first set, plus I'd like to change the icons of the series that are shown to sides only. Thank you.
1) To hide other series when one is shown:
a) Set up an event listener for series.event.show (http://highcharts.com/ref/#plotOptions-series-events => show)
b) In this event listener, loop over chart.series and call series.hide() on the others.
2) To make the chart display only one series initially, set visible:false on the others.
I had a similar use case, just that each series is tied to its own Y-axis. (i.e the y-axis units/scale/data is different for each series).
So the Y-axis needs to change depending on the selected series.
I was unable to find a 'hide' option for the y-axis.
Am I missing someway to achieve this functionality?
Welcome to our forum and thanks for contacting us with your question!
I've tried to reproduce your issue but the code that your shared is missing data. Please provide me with simplified working code supplied with missing data, prefereably in a form of a live demo. You can start here: https://jsfiddle.net/BlackLabel/4h05ug87/
Hello everyone,
mateusz.b thanks a million for your response to my question and also I radically appreciate helping me with the appropriate way of sharing my examples. After dealing with the function a lot, I found the problem source. The complication was related to while loop which the conditional added to the chart in subtracting should not have been added inside the parentheses.