Class DoughnutDataset

    • Constructor Detail

      • DoughnutDataset

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

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

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

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

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

        protected DoughnutDataset​(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

      • setBorderAlign

        public default void setBorderAlign​(BorderAlign... align)
        Sets the property to set the border alignment on chart datasets.
        Parameters:
        align - the property to set the border alignment on chart datasets
      • setBorderAlign

        public default void setBorderAlign​(List<BorderAlign> align)
        Sets the property to set the border alignment on chart datasets.
        Parameters:
        align - the property to set the border alignment on chart datasets
      • getBorderAlign

        public default List<BorderAlign> getBorderAlign()
        Returns the property to set the border alignment on chart datasets.
        Returns:
        the property to set the border alignment on chart datasets.
      • getBorderAlignCallback

        public default BorderAlignCallback getBorderAlignCallback()
        Returns the border align callback, if set, otherwise null.
        Returns:
        the border align callback, if set, otherwise null.
      • setBorderAlign

        public default void setBorderAlign​(BorderAlignCallback borderAlignCallback)
        Sets the border align callback.
        Parameters:
        borderAlignCallback - the border align callback to set
      • setBorderAlign

        public default void setBorderAlign​(NativeCallback borderAlignCallback)
        Sets the border align callback.
        Parameters:
        borderAlignCallback - the border align callback to set