IChartValueData Interface
Value data of a chart series.
Declaration
public interface IChartValueData
Remarks
Pass an IChartValueData object to the SeriesBase.setValues(value) or DataSeriesExBase.setValues(value) method to specify series values.
The following classes implement the IChartValueData interface:
- ChartDataReference refers to chart data cells.
- ChartNumericData contains numeric values specified in code.
- ChartDataExpressionReference refers to chart data specified by a reference expression (for example, a cell range or a defined name).
Refer to the following help topic for additional information: Load Data into Charts — Presentation API for Java.
Methods
cloneValueData() Method
Creates a copy of the value data.
Declaration
public abstract IChartValueData cloneValueData()
Returns
| Type | Description |
|---|---|
IChartValueData |
A copy of the value data. |
getExpression(IChartDataContext context) Method
Returns the reference expression of the value data.
Declaration
public abstract String getExpression(IChartDataContext context)
Parameters
| Name | Type | Description |
|---|---|---|
| context | IChartDataContext | An object that returns sheet names for sheet indexes. |
Returns
| Type | Description |
|---|---|
| String | The reference expression, or |
getNumericValues() Method
Returns numeric values.
Declaration
public default List<Double> getNumericValues()
Returns
| Type | Description |
|---|---|
| java.util.List<java.lang.Double> | Numeric values, or |
getType() Method
Returns the type of the value data.
Declaration
public abstract ChartDataType getType()
Returns
| Type | Description |
|---|---|
| ChartDataType | The data type. |