Class TimeSeriesHorizontalBarDataset

    • Constructor Detail

      • TimeSeriesHorizontalBarDataset

        public TimeSeriesHorizontalBarDataset()
        Creates a dataset.
        It uses the global options has default.
      • TimeSeriesHorizontalBarDataset

        public TimeSeriesHorizontalBarDataset​(boolean hidden)
        Creates a dataset.
        It uses the global options has default.
        Parameters:
        hidden - if true, it will be initially hidden.
      • TimeSeriesHorizontalBarDataset

        public TimeSeriesHorizontalBarDataset​(IsDefaultOptions defaultValues)
        Creates the dataset using a default.
        Parameters:
        defaultValues - default options
      • TimeSeriesHorizontalBarDataset

        public TimeSeriesHorizontalBarDataset​(IsDefaultOptions defaultValues,
                                              boolean hidden)
        Creates the dataset using a default.
        Parameters:
        defaultValues - default options
        hidden - if true, it will be initially hidden.
      • TimeSeriesHorizontalBarDataset

        protected TimeSeriesHorizontalBarDataset​(Type type,
                                                 boolean hidden)
        Creates the dataset using a default and chart type related to the dataset.
        Parameters:
        type - chart type related to the dataset
        hidden - if true, it will be initially hidden
      • TimeSeriesHorizontalBarDataset

        protected TimeSeriesHorizontalBarDataset​(Type type,
                                                 IsDefaultOptions defaultValues,
                                                 boolean hidden)
        Creates the dataset using a default and chart type related to the dataset.
        Parameters:
        type - chart type related to the dataset
        defaultValues - default options
        hidden - if true, it will be initially hidden.
    • Method Detail

      • getBarStackHandler

        public final org.pepstock.charba.client.data.BarStackHandler getBarStackHandler()
      • setData

        public final void setData​(double... values)
        Description copied from class: Dataset
        Sets the data property of a data set for a chart is specified as an array of numbers.
        Each point in the data array corresponds to the label at the same index on the x axis.
        Specified by:
        setData in interface HasTimeSeriesItems
        Overrides:
        setData in class Dataset
        Parameters:
        values - an array of numbers
      • setData

        public final void setData​(List<Double> values)
        Description copied from class: Dataset
        Sets the data property of a data set for a chart is specified as a list of numbers.
        Each point in the data list corresponds to the label at the same index on the x axis.
        Specified by:
        setData in interface HasTimeSeriesItems
        Overrides:
        setData in class Dataset
        Parameters:
        values - list of numbers.
      • getData

        public final List<Double> getData()
        Description copied from class: Dataset
        Returns the data property of a data set for a chart is specified as a list of numbers.
        Each point in the data list corresponds to the label at the same index on the x axis.
        Specified by:
        getData in interface HasTimeSeriesItems
        Overrides:
        getData in class Dataset
        Returns:
        list of numbers or an empty list of numbers if the data type is not DataType.NUMBERS.
      • getData

        public final List<Double> getData​(boolean binding)
        Description copied from class: Dataset
        Returns the data property of a data set for a chart is specified as a list of numbers.
        Each point in the data list corresponds to the label at the same index on the x axis.
        Specified by:
        getData in interface HasTimeSeriesItems
        Overrides:
        getData in class Dataset
        Parameters:
        binding - if true binds the new array list in the container
        Returns:
        list of numbers or an empty list of numbers if the data type is not DataType.NUMBERS.
      • setStackGroup

        public default void setStackGroup​(String stackGroup)
        Sets the name of stack group.
        Parameters:
        stackGroup - name of stack group.
      • getStackGroup

        public default String getStackGroup()
        Returns the name of stack group.
        Returns:
        the name of stack group.
      • setOrder

        public default void setOrder​(int order)
        Sets the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Parameters:
        order - the drawing order of dataset.
      • getOrder

        public default int getOrder()
        Returns the drawing order of dataset.
        Also affects order for stacking, tooltip, and legend.
        Returns:
        the drawing order of dataset