public static class ChartStackedArea.Builder extends Chart.Builder<ChartStackedArea.Builder>
Constructor and Description |
---|
Builder(java.lang.String title,
StyleChart style) |
Modifier and Type | Method and Description |
---|---|
ChartStackedArea.Builder |
addSeries(java.lang.String seriesName,
double[] yValues)
Add a single series.
|
ChartStackedArea |
build() |
ChartStackedArea.Builder |
setXValues(double[] x)
Set the x-axis values
|
setGridWidth, setGridWidth, setXMax, setXMin, setYMax, setYMin, showLegend, suppressAxisHorizontal, suppressAxisVertical
public Builder(java.lang.String title, StyleChart style)
public ChartStackedArea.Builder setXValues(double[] x)
public ChartStackedArea.Builder addSeries(java.lang.String seriesName, double[] yValues)
seriesName
- Name of the seriesyValues
- length of the yValues array must be same as the x-values arraypublic ChartStackedArea build()