Class BarChart

    • Constructor Detail

      • BarChart

        public BarChart()
        Builds the object.
      • BarChart

        protected BarChart​(Type extendedType)
        Builds the chart.
        This is must be extended for controller which are based on this type of chart.
        Parameters:
        extendedType - type of chart
      • BarChart

        protected BarChart​(Type extendedType,
                           boolean doNotCreateOptions)
        Builds the chart.
        This is must be extended for controller which are based on this type of chart.
        Parameters:
        extendedType - type of chart
        doNotCreateOptions - if true, it ignores the creation of the bar options because the extended class will create own options.
    • Method Detail

      • getOptions

        public BarOptions getOptions()
        Description copied from interface: IsChart
        Returns the options of chart.
        Specified by:
        getOptions in interface IsChart
        Returns:
        the options of chart.
      • newDataset

        public BarDataset newDataset​(boolean hidden)
        Description copied from interface: IsDatasetCreator
        Creates a new dataset related to chart type.
        Specified by:
        newDataset in interface IsDatasetCreator<BarDataset>
        Parameters:
        hidden - if true, it will be initially hidden.
        Returns:
        a new dataset related to chart type.
      • checkDataset

        protected boolean checkDataset​(Dataset dataset)
        Description copied from class: AbstractChart
        Returns true if the dataset can be managed by a this chart type.
        Specified by:
        checkDataset in class AbstractChart
        Parameters:
        dataset - dataset to check
        Returns:
        true if the dataset can be managed by a this chart type