jfreechart-fx
jfreechart-fx copied to clipboard
Different behaviour in JavaFX/Swing node
Hey,
we noticed different behaviour of a chart placed in a swing or java fx node on at least two occasions:
-
A dataset of the same type increased its bar width on zoom in. Manually overriding the getX etc. method fixed that. See the changes in this this commit. https://github.com/mzmine/mzmine3/pull/62/commits/40f303404ea6e21ac1c5710140582110732fa2bf
Left is Swing, right is JavaFX. (without the fix)
-
In the same screenshot, you can see the left plot has a joined domain axis, whereas the left one does not. Both plots are an instance of CombinedDomainXYPlot. The gap is set to 0 on creation of both of those charts. In Swing it works, in java fx it does not. For some reason though, if the plot is cloned, moved to a new window and then a theme is applied, the axis join.
I hope this is enough information, if you need to know more please let me know.
Best regards Steffen