Skip to content

Remove Y-axis after adding multiple Y-axis #291

@timpehr

Description

@timpehr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions