A scientific charting library focused on performance optimised real-time data visualisation at 25 Hz update rates for data sets with a few 10 thousand up to 5 million data points.
GNU Lesser General Public License v3.0
488
stars
90
forks
source link
Fix usage of `renderer.getAxes` in `DataPointToolTip` and other plugins #639
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](https://github.com/fair-acc/chart-fx/assets/18255523/c8ed5056-cec0-4be1-859b-682da5dc5836)
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
Discussed in https://github.com/fair-acc/chart-fx/discussions/638
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: