Can't make DataPointTooltip work with the samples #638
-
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. Can you give me advise? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, thanks for reporting, this seems to have been broken on the 11.3 major release, where the semantic on the As a quick workaround you can explicitly set the renderer axes to the ones defined in the chart: renderer.getAxes().addAll(chart.getAxes()); // explicitly set renderer axes until Tooltip Plugin is fixed This should work for all simple charts that only use a single renderer and get you started while we'll try to figure out how this should best be fixed. Ultimately the plugin should use the same logic that is used by the renderer, but currently these methods are at least partially defined in the individual implementations and not exposed through the interface, so we will probably have to pull them up. |
Beta Was this translation helpful? Give feedback.
Hey, thanks for reporting, this 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.As a quick workaround you can explicitly set the renderer axes to the ones defined in the chart:
This should work for all simple charts that only use a single renderer and get you started while we'll try to figure out how this should best be fixed. Ultimately the plugin should use the same logic that is used by the renderer, but currently these met…