Class DefaultChartScales

  • All Implemented Interfaces:
    IsDefaultScales

    public final class DefaultChartScales
    extends Object
    implements IsDefaultScales
    Defaults for scales/axes option element, based on chart type.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • DefaultChartScales

        public DefaultChartScales​(Scales scales)
        Creates the object by scales option element instance.
        Parameters:
        scales - scales option element instance.
    • Method Detail

      • getAxis

        public IsDefaultScale getAxis​(ScaleId scaleId,
                                      AxisKind kind)
        Description copied from interface: IsDefaultScales
        Returns the default configuration for x axis.
        Specified by:
        getAxis in interface IsDefaultScales
        Parameters:
        scaleId - the scale id to use to get the default
        kind - axis kind to use if the scale id is not recognizable
        Returns:
        the default configuration for x axis.