Class PieChart

  • All Implemented Interfaces:
    HasAxes, IsChart, IsDatasetCreator<PieDataset>

    public class PieChart
    extends AbstractChart
    implements IsDatasetCreator<PieDataset>
    PIE chart implementation.
    A pie charts are divided in the segments, the arc of each segment shows the proportional value of each piece of data.
    They are excellent at showing the relational proportions between data.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • PieChart

        public PieChart()
        Builds the object.
      • PieChart

        protected PieChart​(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
    • Method Detail

      • getOptions

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

        public PieDataset newDataset​(boolean hidden)
        Description copied from interface: IsDatasetCreator
        Creates a new dataset related to chart type.
        Specified by:
        newDataset in interface IsDatasetCreator<PieDataset>
        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