Series Class

The base class for all series which a Cartesian chart can display.

Declaration

public abstract class Series
extends SeriesBase

Inherited Members

java.lang.Object.equals(java.lang.Object)
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long, int)

Constructors

Series() Constructor

Initializes a new Series class instance with default parameters.

Declaration

public Series()

Methods

Constructors

Series.getData() Method

Returns the Cartesian series's data.

Declaration

public XYSeriesData getData()

Returns

Type Description
XYSeriesData

An object that provides data points' arguments and values.

See Also

Series.getHintOptions() Method

Returns the SeriesHintOptions object that specifies a series's hint text parameters.

Declaration

public SeriesHintOptions getHintOptions()

Returns

Type Description
SeriesHintOptions

The SeriesHintOptions object specifying a series-related hint options.

Series.setData(XYSeriesData) Method

Specifies the Cartesian series's data.

Declaration

public void setData(XYSeriesData data)

Parameters

Type Name Description
XYSeriesData data

An object that provides data points' arguments and values.

Note that the data provider type should be compatible with the chart x-axis type. Otherwise, the chart does not visualize series.

The following table represents compatible data interface and x-axis.

Data type X-axis type
QualitativeSeriesData QualitativeAxisX
NumericSeriesData NumericAxisX
DateTimeSeriesData DateTimeAxisX
FinancialSeriesData DateTimeAxisX
See Also

Series.setHintOptions(SeriesHintOptions) Method

Specifies the SeriesHintOptions object that specifies a series's hint text parameters.

Declaration

public void setHintOptions(SeriesHintOptions options)

Parameters

Type Name Description
SeriesHintOptions options

The SeriesHintOptions object specifying a series-related hint options.