Class AbstractSeriesItem
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.AbstractSeriesItem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataSeriesItem
,TreeSeriesItem
Abstract superclass for chart series items
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class name of the itemgetColor()
Returns the color of the item.Returns the colorIndex of the item.getId()
Returns the id of the item.Returns the index of the legend.Returns the marker of the item.getName()
Returns the name of the item.boolean
Checks whether or not the item is sliced.getX()
Returns the X-value of the item.getY()
Returns the Y-value of the item.void
setClassName
(String className) An additional, individual class name for the data point's graphic representation.void
Sets the individual color for the point.void
setColorIndex
(Number colorIndex) A specific color index to use for the point, so its graphic representations are given the class name highcharts-color-{n}.void
Sets the ID for the point.void
setLegendIndex
(Number legendIndex) Sets the sequential index of the pie slice in the legend.void
Sets the marker of this data series itemvoid
Sets the name of the data item as shown in the legend, tooltip, dataLabel etc.void
setSliced
(boolean sliced) Sets whether to display a slice offset from the center.void
Sets the X value of this data item.void
Sets the given instant as the x value.void
Deprecated.as of 4.0.void
Sets the Y value of this data item.
-
Constructor Details
-
AbstractSeriesItem
public AbstractSeriesItem()
-
-
Method Details
-
getName
Returns the name of the item.- Returns:
- The name of the data item or null if not defined.
- See Also:
-
setName
Sets the name of the data item as shown in the legend, tooltip, dataLabel etc. Defaults to "".- Parameters:
name
- Name of the item.
-
getY
Returns the Y-value of the item.- Returns:
- The Y value of this data item.
- See Also:
-
setY
Sets the Y value of this data item. Defaults to null.- Parameters:
y
- Y-value of the item.
-
getX
Returns the X-value of the item.- Returns:
- The X value of this data item.
- See Also:
-
setX
Sets the X value of this data item. Defaults to null.- Parameters:
x
- X-value of the item.
-
setX
Sets the given instant as the x value.- Parameters:
instant
- Instant to set.
-
setX
Deprecated.as of 4.0. UsesetX(Instant)
-
getSliced
public boolean getSliced()Checks whether or not the item is sliced. Makes sense only in pie charts.- Returns:
- true when this data item is displayed offset from the center in a pie chart, false otherwise.
- See Also:
-
setSliced
public void setSliced(boolean sliced) Sets whether to display a slice offset from the center. Defaults to false. Note: This applies to pie charts only.- Parameters:
sliced
- When true, this item should be displayed with a small offset from the centre of the pie chart; when false, this item will be rendered normally.
-
getColor
Returns the color of the item.- Returns:
- The color of the item.
- See Also:
-
setColor
Sets the individual color for the point. Defaults to null. This might not work for all chart types.- Parameters:
color
- Color of the item.
-
getColorIndex
Returns the colorIndex of the item.- Returns:
- The colorIndex of the item.
- See Also:
-
setColorIndex
A specific color index to use for the point, so its graphic representations are given the class name highcharts-color-{n}.- Parameters:
colorIndex
- Color of the item.
-
getLegendIndex
Returns the index of the legend. Applicable only to pie charts.- Returns:
- The index of the legend or null if not defined. Only applicable for pie charts.
- See Also:
-
setLegendIndex
Sets the sequential index of the pie slice in the legend. Defaults to undefined. Note This applies to pie charts only.- Parameters:
legendIndex
- Index in the legend.
-
setMarker
Sets the marker of this data series item- Parameters:
marker
- Marker of the item.
-
getMarker
Returns the marker of the item.- Returns:
- The marker of this data series item. If none is specified a new
Marker
will be created. - See Also:
-
getId
Returns the id of the item.- Returns:
- The ID of the item.
- See Also:
-
setId
Sets the ID for the point. This can be used after rendering to get a reference to the point object. Defaults to null.- Parameters:
id
- New id.
-
getClassName
Returns the class name of the item- Returns:
- The class name of the item
- See Also:
-
setClassName
An additional, individual class name for the data point's graphic representation.- Parameters:
className
- new class name of the item
-