A chart object has three sets of primary attributes:
• A plot
• Axis
• A series – the data to be drawn
Each of these must be added to a chart.
The Charting Plot
The plot describes what kind of chart should be drawn. To add a "plot" to a chart, we call:
chart.addPlot(name, args);
The first parameter is the name of the plot and becomes important if we wish to have multiple plots
on the same chart.
The second parameter defines the core attributes of the plot. These attributes include:
• type <String> - The type of plot. This is the core style of the chart. The values are Areas, Bars,
ClusteredBars, Columns, Grid, Lines, Markers, MarkersOnly, Pie, Scatter, Stacked,
StackedAreas, StackedBars, StackedColumns, StackedLines
◦ Areas
◦ Bars
Page 207
Kommentare zu diesen Handbüchern