Class Chart2

All Implemented Interfaces:
BorderProperties, GeneralProperties, HyperlinkProperties, NodeParser, com.inet.report.ReferenceHolder, Serializable, Cloneable

public class Chart2 extends Element implements HyperlinkProperties, BorderProperties
This class represents a chart element with new chart API that has been or should be drawn in a report. A chart (or graph) visualize your data with some graphics.

To create a new chart use Section.addChart2(ChartStyle, int, int, int, int).
To change the chart style use setPlot(ChartPlot).

A chart instance contains properties of the chart titles (header, subtitle, footnote), legend and plot properties.
If you want to edit the style specific properties you can get the plot with getPlot() and cast it to the plot which belong to this chart style. For more information see the class ChartStyle.

If you create a new chart all properties except dataset are initialized with default. To set the dataset properties use ChartPlot.getDataset(). For more information see the class BaseDataset.

For the information how to use the old chart API please see ChartConverter.

Since:
8.0
See Also: