Class DefaultTypedDataset

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int FLEX_BAR_THICKNESS
      If set to 'flex', the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap.
      Then, bars are sized using barPercentage and categoryPercentage.
      There is no gap when the percentage options are 1.
      This mode generates bars with different widths when data are not evenly spaced, Integer.MIN_VALUE.
      static String FLEX_BAR_THICKNESS_VALUE
      The value to set to have the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap.
      Then, bars are sized using barPercentage and categoryPercentage.
      There is no gap when the percentage options are 1.
      This mode generates bars with different widths when data are not evenly spaced, "flex".
    • Field Detail

      • FLEX_BAR_THICKNESS

        public static final int FLEX_BAR_THICKNESS
        If set to 'flex', the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap.
        Then, bars are sized using barPercentage and categoryPercentage.
        There is no gap when the percentage options are 1.
        This mode generates bars with different widths when data are not evenly spaced, Integer.MIN_VALUE.
        See Also:
        Constant Field Values
      • FLEX_BAR_THICKNESS_VALUE

        public static final String FLEX_BAR_THICKNESS_VALUE
        The value to set to have the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap.
        Then, bars are sized using barPercentage and categoryPercentage.
        There is no gap when the percentage options are 1.
        This mode generates bars with different widths when data are not evenly spaced, "flex".
        See Also:
        Constant Field Values
    • 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.