You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.model.

Class TreeSeries

    • Constructor Detail

      • TreeSeries

        public TreeSeries()
      • TreeSeries

        public TreeSeries​(String name)

        Constructs a TreeSeries with the given name

        Parameters:

        name - The name of this series.

      • TreeSeries

        public TreeSeries​(String name,
                          Collection<TreeSeriesItem> data)

        Constructs a TreeSeries with the given name and data

        Parameters:

        name - The name of this series

        data - The data of this series

    • Method Detail

      • setData

        public void setData​(Collection<TreeSeriesItem> data)

        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

        public void add​(TreeSeriesItem item)

        Add given item to the series

        Parameters:

        item -

      • addAll

        public void addAll​(TreeSeriesItem... items)

        Add all the given items to the series

        Parameters:

        items -