public interface IChartDataSet
Builders of ChartDataSet ensure the state of the ChartDataSet is as follows. (Recall that a set of chart data is graph-compatible if it is for the same graph type and the same graph axis. Otherwise the data is graph-incompatible. See ChartTag.isGraphCompatible().)
There is one GraphDataSet under ChartDataSet for each graph-incompatible set of data.
There is a set of ChartSeries under each GraphDataSet. There's one unique ChartSeries for each unique series of plot points in the graph.
For category charts, each set of plot points that is within a single series, and that has the same category (x-value) will be replaced by a single plot point with the sum of the y-values.
For string-based and date-based data sets, plot points with null y-values will be inserted so that each series has one plot point for each x-value.
For date-based data sets, all plot points will be sorted in ascending order, with respect to the dates.
Modifier and Type | Method and Description |
---|---|
void |
applyChartML(IChartMLCarrier chartml,
DocHeader docHdr)
sets the series colors and line weight from chartml
|
void |
close()
Call when done.
|
java.util.List<IChartSeries> |
getAllSeriesData() |
java.lang.String |
getChartTitle()
The main chart title.
|
java.lang.String[] |
getLegendTitles()
Gets an array of titles that will be in the legend.
|
java.lang.String |
getXAxisTitle()
The x axis title.
|
java.lang.String |
getYAxisTitle()
The y axis title.
|
java.lang.String |
getZAxisTitle()
The z axis title.
|
java.util.List<IGraphDataSet> |
graphs()
The data for this chart.
|
void |
setTitles(ChartTitles titles)
Set titles for the chart.
|
java.util.List<IGraphDataSet> graphs()
void close()
void setTitles(ChartTitles titles)
titles
- the new titles for the chart.java.lang.String getChartTitle()
java.lang.String getXAxisTitle()
java.lang.String getYAxisTitle()
java.lang.String getZAxisTitle()
void applyChartML(IChartMLCarrier chartml, DocHeader docHdr) throws DataSourceException
chartml
- the chartmldocHdr
- DataSourceException
java.lang.String[] getLegendTitles()
java.util.List<IChartSeries> getAllSeriesData()
Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software