java - JavaFX BarChart Scrollable? -
how go making barchart scrollable? been trying use scrollpane barchart pane inside it.
so far have:
final barchart chartpane = chart.getgraph(); chartscrollpane.setcontent(chartpane); chartscrollpane.setfittowidth(true);
the chartpane 1200px wide, , chartscrollpane 800px.
just set width of barchart larger value. when chart embedded in scrollpane care scrollbars.
for example:
scrollpane scrollpane = new scrollpane(); scene scene = new scene(scrollpane, 800, 600); chartpane.setprefwidth(20000); chartpane.setminwidth(20000); scrollpane.setcontent(chartpane);
Comments
Post a Comment