IChartDataReference Interface
A reference to cells that contain chart data.
Declaration
public interface IChartDataReference
Remarks
Pass an IChartDataReference object to a method that binds a chart element to chart data cells (for example, SeriesBase.setTextReference(value) or LineSeries.setDataLabelsRange(value)).
ChartDataReference and ChartDataExpressionReference classes implement the IChartDataReference interface.
Refer to the following help topic for additional information: Load Data into Charts — Presentation API for Java.
Methods
cloneReference() Method
Creates a copy of the reference.
Declaration
public abstract IChartDataReference cloneReference()
Returns
| Type | Description |
|---|---|
IChartDataReference |
A copy of the reference. |
getExpression(IChartDataContext context) Method
Returns the reference expression.
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. |