public class ChartSeries extends Object implements com.gembox.spreadsheet.internal.charts.ChartObject, com.gembox.spreadsheet.internal.charts.ChartDataLabelsDataProvider
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the series.
|
ChartDataLabels |
getDataLabels()
Gets the settings for the data labels for an entire series.
|
String |
getDisplayName()
Gets the series display name.
|
int |
getIndex()
Gets the index of this
ChartSeries instance in the parent ChartSeriesCollection . |
String |
getName()
Gets the series name as direct value (for example, 'My series') or as a reference to a cell with value (for example, '=Sheet1!A1').
|
Iterable |
getValues()
Gets the chart series values.
|
String |
getValuesReference()
Gets the chart series values as a cell range reference (for example, 'Sheet1!A1:D1').
|
boolean |
isLegendEntryVisible()
Gets a value indicating whether legend entry for this series instance is visible.
|
void |
setLegendEntryVisible(boolean legendEntryVisible)
Sets a value indicating whether legend entry for this series instance is visible.
|
void |
setName(String name)
Sets the series name as direct value (for example, 'My series') or as a reference to a cell with value (for example, '=Sheet1!A1').
|
void |
setValues(Iterable values)
Sets the chart series values.
|
void |
setValues(Object... values)
Sets the chart series values.
|
void |
setValuesReference(String valuesReference)
Sets the chart series values as a cell range reference (for example, 'Sheet1!A1:D1').
|
String |
toString()
Returns the
display name value. |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
deleteChartObject, getChartObjectParent, setChartObjectParent
getDelete, getLabelPosition, getNumberFormat, getSeparator, isNumberFormatLinkedToSource, isShowLeaderLines, labelContainsCategoryName, labelContainsLegendKey, labelContainsSeriesName, labelContainsValue, setDelete, setLabelContainsCategoryName, setLabelContainsLegendKey, setLabelContainsSeriesName, setLabelContainsValue, setLabelPosition, setNumberFormat, setNumberFormatLinkedToSource, setSeparator, setShowLeaderLines
public final void delete()
public final ChartDataLabels getDataLabels()
public final String getDisplayName()
name
is direct value, then name
value is returned; otherwise, if name
is a cell reference, then referenced cell value is returned.public final int getIndex()
ChartSeries
instance in the parent ChartSeriesCollection
.ChartSeries
instance in the parent ChartSeriesCollection
.public final String getName()
public final Iterable getValues()
public final String getValuesReference()
public final boolean isLegendEntryVisible()
Default value is true
.
true
if legend entry for this series instance is visible; otherwise, false
.public final void setLegendEntryVisible(boolean legendEntryVisible)
Default value is true
.
legendEntryVisible
- true
if legend entry for this series instance is visible; otherwise, false
.public final void setName(String name)
name
- The series name.public final void setValues(Iterable values)
values
- The chart series values.NullPointerException
- values
is null
.public final void setValues(Object... values)
values
- The chart series values.public final void setValuesReference(String valuesReference)
valuesReference
- The chart series values as a cell range reference.public String toString()
display name
value.toString
in class Object
display name
value.© GemBox d.o.o. — All rights reserved.