Class GaugeChart

    • Field Detail

      • CONTROLLER_TYPE

        public static final ControllerType CONTROLLER_TYPE
        METER controller type
      • DEFAULT_MAX

        public static final double DEFAULT_MAX
        Default of maximum value of data in the a dataset (percentage based), 100.0.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GaugeChart

        public GaugeChart()
        Builds the object.
    • Method Detail

      • getOptions

        public GaugeOptions getOptions()
        Description copied from interface: IsChart
        Returns the options of chart.
        Returns:
        the options of chart.
      • newDataset

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

        public GaugeDataset newDataset​(double max)
        Returns a data set with a maximum value.
        Parameters:
        max - maximum value of data set
        Returns:
        data set instance
      • 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
      • register

        public static void register()
        Registers the GAUGE controller in CHART.JS.
      • applyConfiguration

        protected final void applyConfiguration()
        Description copied from class: AbstractChart
        Called before any drawing or reconfiguration in order that the chart which implements it can override options
        Overrides:
        applyConfiguration in class AbstractChart
      • getMaximumDatasetsCount

        protected final int getMaximumDatasetsCount()
        Description copied from class: AbstractChart
        Returns the maximum amount of datasets that the chart can manage.
        Overrides:
        getMaximumDatasetsCount in class AbstractChart
        Returns:
        the maximum amount of datasets that the chart can manage.