com.vaadin.flow.component.charts.model.
Class TreeSeries
All Implemented Interfaces:
A collection of TreeSeriesItems
that compose a
multi-root tree. This series is meant to be used with
ChartType.TREEMAP
charts.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTreeSeries
(String name) Constructs a TreeSeries with the given name
TreeSeries
(String name, Collection<TreeSeriesItem> data) Constructs a TreeSeries with the given name and data
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TreeSeriesItem item) Add given item to the series
void
addAll
(TreeSeriesItem... items) Add all the given items to the series
void
Remove all items in the series.
getData()
Return an unmodifiable copy of the items in this series.
void
setData
(Collection<TreeSeriesItem> data) Set the list of
TreeSeriesItem
in this series.Methods inherited from class com.vaadin.flow.component.charts.model.AbstractSeries
getColorAxis, getConfiguration, getId, getName, getPlotOptions, getStack, getxAxis, getyAxis, isVisible, setColorAxis, setConfiguration, setId, setName, setPlotOptions, setStack, setVisible, setVisible, setxAxis, setyAxis, setyAxis, updateSeries
-
Constructor Details
-
TreeSeries
public TreeSeries() -
TreeSeries
Constructs a TreeSeries with the given name
Parameters:
name
- The name of this series. -
TreeSeries
Constructs a TreeSeries with the given name and data
Parameters:
name
- The name of this seriesdata
- The data of this series
-
-
Method Details
-
getData
Return an unmodifiable copy of the items in this series.
Returns:
See Also:
-
setData
Set the list of
TreeSeriesItem
in this series. The items are the whole tree, and the list is not ordered.Parameters:
data
- -
clearSeries
public void clearSeries()Remove all items in the series.
-
add
Add given item to the series
Parameters:
item
- -
addAll
Add all the given items to the series
Parameters:
items
-
-