Views
2 months ago

tornadofx-guide

8. Charts

8. Charts bubblechart("Machine Capacity by Output/Week", NumberAxis(), NumberAxis()) { series("Product X") { data(1,24,1) data(2,46,2) data(3,23,1) data(4,27,2) data(5,18,1) } series("Product Y") { data(1,12,1) data(2,31,2) data(3,9,1) data(4,11,1) data(5,15,2) } } Figure 8.6 130

8. Charts Summary Charts are a an effective way to visualize data, and the builders in TornadoFX help create them quickly. You can read more about JavaFX charts in Oracle's documentation. If you need more advanced charting functionality, there are libraries like JFreeChart and Orson Charts you can leverage and interop with TornadoFX, but this is beyond the scope of this book. 131

GUIDE
Guide
GUIDE
Guide
GUIDE
GUIDE
Guide
GUIDE
Guide
Guide
Guide
GUIDE
GUIDE