Class DefaultChartTypedDatasets

    • Constructor Detail

      • DefaultChartTypedDatasets

        public DefaultChartTypedDatasets​(IsDefaultTypedDataset dataset)
        Creates the object by typed data set option element instance.
        Parameters:
        dataset - typed data set option element instance.
    • Method Detail

      • getBarPercentage

        public double getBarPercentage()
        Description copied from interface: IsDefaultBarDatasets
        Returns the percent (0-1) of the available width each bar should be within the category width.
        1.0 will take the whole category width and put the bars right next to each other.
        Specified by:
        getBarPercentage in interface IsDefaultBarDatasets
        Returns:
        percent (0-1) of the available width each bar should be within the category width.
        1.0 will take the whole category width and put the bars right next to each other.
      • getCategoryPercentage

        public double getCategoryPercentage()
        Description copied from interface: IsDefaultBarDatasets
        Returns the percent (0-1) of the available width each category should be within the sample width.
        Specified by:
        getCategoryPercentage in interface IsDefaultBarDatasets
        Returns:
        the percent (0-1) of the available width each category should be within the sample width.
      • getBarThickness

        public int getBarThickness()
        Description copied from interface: IsDefaultBarDatasets
        Returns the width of each bar in pixels.
        If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side.
        If not set, the base sample widths are calculated automatically so that they take the full available widths without overlap.
        Then, the bars are sized using barPercentage and categoryPercentage.
        Specified by:
        getBarThickness in interface IsDefaultBarDatasets
        Returns:
        width of each bar in pixels.
        If not set, the base sample widths are calculated automatically so that they take the full available widths without overlap.
        Then, the bars are sized using barPercentage and categoryPercentage.
      • isGrouped

        public boolean isGrouped()
        Description copied from interface: IsDefaultBarDatasets
        When true, all the data sets at same index value will be placed next to each other centering on that index value.
        When false, each bar is placed on its actual index-axis value.
        Specified by:
        isGrouped in interface IsDefaultBarDatasets
        Returns:
        if true, all the data sets at same index value will be placed next to each other centering on that index value.
      • isShowLine

        public boolean isShowLine()
        Description copied from interface: IsDefaultTypedDataset
        Returns if the line is not drawn for this dataset.
        Specified by:
        isShowLine in interface IsDefaultTypedDataset
        Returns:
        false if the line is not drawn for this dataset.