Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wirew0rm opened this issue Nov 13, 2023 Discussed in #638 · 0 comments
Open

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

wirew0rm opened this issue Nov 13, 2023 Discussed in #638 · 0 comments

Comments

@wirew0rm
Copy link
Member

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
@yezhengli-Mr9 yezhengli-Mr9 mentioned this issue Nov 26, 2023
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant