How do you remove a Y-axis after adding multiple Y-axis. I'm working on an application that adds and removes series from the chart and adds multiple Y-axis. I need to be able to remove a Y-axis at any point.
Example:
XYSeries series1;
XYSeries series2;
series1.setYAxisGroup(0);
chart.getStyler().setYAxisGroupPosition(0, Styler.YAxisPosition.Left);
series2.setYAxisGroup(1);
chart.getStyler().setYAxisGroupPosition(1, Styler.YAxisPosition.Right);
This shows two series on two Y-axis. But now I want to delete one of the series and only show one Y-axis on the chart. How do I do this? I can remove the second series but the chart still shows the second Y-axis.
How do you remove a Y-axis after adding multiple Y-axis. I'm working on an application that adds and removes series from the chart and adds multiple Y-axis. I need to be able to remove a Y-axis at any point.
Example:
XYSeries series1;
XYSeries series2;
series1.setYAxisGroup(0);
chart.getStyler().setYAxisGroupPosition(0, Styler.YAxisPosition.Left);
series2.setYAxisGroup(1);
chart.getStyler().setYAxisGroupPosition(1, Styler.YAxisPosition.Right);
This shows two series on two Y-axis. But now I want to delete one of the series and only show one Y-axis on the chart. How do I do this? I can remove the second series but the chart still shows the second Y-axis.