After the changes made in 1bc1756908e1a02182ce38d8a385fad085b384ff, instead of removing the line chart and re-adding it later, if a check box is unchecked the chart's visibility is set to hidden. However, now the plotter does not readjust the scale of the plot. Might need to look into what ChartPlotter.FitToView() does, and possibly modify it to ignore hidden plots.
After the changes made in 1bc1756908e1a02182ce38d8a385fad085b384ff, instead of removing the line chart and re-adding it later, if a check box is unchecked the chart's visibility is set to hidden. However, now the plotter does not readjust the scale of the plot. Might need to look into what
ChartPlotter.FitToView()
does, and possibly modify it to ignore hidden plots.