JavaFX Charts: Change the ChartType of the XYChart at runtime? -


i want change type of chart being displayed e.g. linechart extends xychart , areachart extends xychart. can switch linechart drawn areachart @ runtime?

for xychart,  direct known subclasses: areachart, barchart, bubblechart, linechart, scatterchart, stackedareachart, stackedbarchart 

any great! thanks.

charts show information according list of data, , according settings of chart , of 2 axes. charts don't modify list of data.

so, have put list of data 2 charts, make 2 pairs (or 1 pair, if applicable) of axes, , phisically exchange chart @ specific location in scenegraph.

it theory, should work. if doesn't work in practise - should investigated (possibly, bug). there no trouble show info in several charts , replace charts.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -