Views
8 months ago

tornadofx-guide

8. Charts ScatterChart A

8. Charts ScatterChart A ScatterChart is the simplest representation of an XY data series. It plots the points without bars or lines. It is often used to plot a large volume of data points in order to find clusters. Here is a brief example of a ScatterChart plotting machine capacities by week for two different product lines (Figure 8.5). scatterchart("Machine Capacity by Product/Week", NumberAxis(), NumberAxis()) { series("Product X") { data(1,24) data(2,22) data(3,23) data(4,19) data(5,18) } series("Product Y") { data(1,12) data(2,15) data(3,9) data(4,11) data(5,7) } } Figure 8.5 128

8. Charts BubbleChart BubbleChart is another XY chart similar to the ScatterPlot , but there is a third variable to control the radius of each point. You can leverage this to show, for instance, output by week with the bubble radii reflecting number of machines used (Figure 8.6). 129

Guide
Guide
GUIDE
GUIDE
Guide
GUIDE
Guide
GUIDE
GUIDE
Guide
GUIDE
GUIDE
GUIDE
GUIDE
Guide
GUIDE
GUIDE
GUIDE
The Guide
Guide
Guide to
GUIDE
Guide
GUIDE
Guide
Guide
GUIDE
guide
GUIDE
Guide