Skip to content

Fix usage of renderer.getAxes in DataPointToolTip and other plugins #639

@wirew0rm

Description

@wirew0rm

Discussed in #638

Originally posted by sergiofdezperea November 13, 2023
Hello,

I'm trying to migrate an application from java swing to javafx. This library looks perfect to replace jfreechart.

I was playing with the plugins and i can't make work DataPointTooltip using SimpleChartSample, when i check the render getAxes it returns an empty array.

In FXSampler it doesn’t work either for me.

Recording 2023-11-13 at 08 55 32

Intitial Investigation:
Seems to have been broken on the 11.3 major release, where the semantic on the renderer.getAxes() list changed slightly from always returning the used axes to only holding the axes explicitly set by the user.

Workaround:

renderer.getAxes().addAll(chart.getAxes()); // explicitly set renderer axes until Tooltip Plugin is fixed

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