Interface CategoryTickCallback


  • public interface CategoryTickCallback
    Interface to implement if wants to change the tick marks to include information about the data type, for cartesian category axes.
    It can return a List of strings (for multiple lines).
    Author:
    Andrea "Stock" Stocchero
    See Also:
    CartesianCategoryAxis
    • Method Detail

      • onCallback

        Object onCallback​(Axis axis,
                          String value,
                          int index,
                          List<String> values)
        Changes the tick marks to include information about the data type.
        Parameters:
        axis - axis instance where this callback as been defined
        value - value of tick
        index - index of tick
        values - list of all tick values
        Returns:
        the ticks to apply or if the callback returns null the associated grid line will be hidden.
        It can return a List of strings (for multiple lines) or a string (for single line).