Skip to content

Appearing of redundant chart axes #666

@kromar777

Description

@kromar777

In one of my apps a user can dynamically add/remove/edit axes and renderers can have as independent as well as "shared" axes (usually only Y as secondary).
I create separate renderers for each dataset and before doing this I always remove chart axes: chart.getAxes().clear(). Also I follow the recommendation in the examples: N.B. it's important to set secondary axis on the 2nd renderer before adding the renderer to the chart. After that I don't touch the chart until adding datasets, but sometimes extra axes are still present:
2024-05-01_09-37-41
I don't get it in what moment they are added again.
I'm not sure whether it's a bug and not a big deal actualy though I would like to get advice how to reliable get rid of chart axes besides of inserting chart.getAxes().clear() in different places along the code where they can appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions