public abstract class AbstractSeries extends AbstractConfigurationObject implements Series
Constructor and Description |
---|
AbstractSeries() |
AbstractSeries(String name)
Constructs a named series
|
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration() |
String |
getId() |
String |
getName() |
AbstractPlotOptions |
getPlotOptions()
Gets the plot options related to this specific series.
|
String |
getStack() |
Integer |
getxAxis() |
Integer |
getyAxis() |
Boolean |
isVisible() |
void |
setConfiguration(Configuration configuration)
Sets the configuration to which this series is linked.
|
void |
setId(String id)
Sets an id for the series
|
void |
setName(String name)
Sets the name of the series as shown in the legend, tooltip etc.
|
void |
setPlotOptions(AbstractPlotOptions plotOptions)
Sets the plot options for this specific series.
|
void |
setStack(String stack)
This option allows grouping series in a stacked chart.
|
void |
setVisible(Boolean visible)
Control the visibility of the series.
|
void |
setVisible(Boolean visible,
boolean updateChartImmediately)
Control the visibility of the series.
|
void |
setxAxis(Integer xAxis)
When using dual or multiple X-axes, this number defines which X-axis the
particular series is connected to.
|
void |
setyAxis(Integer yAxis)
When using dual or multiple Y-axes, this number defines which Y-axis the
particular series is connected to.
|
void |
setyAxis(YAxis secondaryAxis)
* When using dual or multiple Y-axes, this number defines which Y-axis
the particular series is connected to.
|
void |
updateSeries() |
public AbstractSeries()
public AbstractSeries(String name)
public String getName()
getName
in interface Series
Series.setName(String)
public void setName(String name)
Series
public void setId(String id)
public String getStack()
setStack(String)
public void setStack(String stack)
stack
- public void setConfiguration(Configuration configuration)
Series
setConfiguration
in interface Series
public Configuration getConfiguration()
Configuration
that this series is linked to.public AbstractPlotOptions getPlotOptions()
getPlotOptions
in interface Series
public void setPlotOptions(AbstractPlotOptions plotOptions)
Options that are not defined at this level will be inherited from the chart and theme levels.
setPlotOptions
in interface Series
public void setVisible(Boolean visible)
visible
- true if the series should be displayed, false if not#setVisible(boolean, boolean)
public void setVisible(Boolean visible, boolean updateChartImmediately)
With this version of the method developer can disable immediate chart update for already rendered chart, if e.g. multiple changes to the chart configuration are wished to be applied at once.
visible
- true if the series should be displayed, false if notupdateChartImmediately
- Updates the chart immediately if true.setVisible(Boolean)
,
Chart.drawChart()
public Boolean isVisible()
public Integer getxAxis()
#setxAxis(Number)
public void setxAxis(Integer xAxis)
xAxis
- The index of the X-axis to bind this data series to.public Integer getyAxis()
#setyAxis(Number)
public void setyAxis(Integer yAxis)
yAxis
- The index of the Y-axis to bind this data series to.public void setyAxis(YAxis secondaryAxis)
Note, that this method cannot be used until series and axis are both attached to same configuration object.
secondaryAxis
- #setyAxis(Number)
public void updateSeries()
Copyright © 2025. All rights reserved.