Interface PointLabelCallback


  • public interface PointLabelCallback
    Callback function to transform data labels to point labels.
    It can return a List of strings (for multiple lines).
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • onCallback

        Object onCallback​(Axis axis,
                          String item,
                          int index)
        Callback function to transform data labels to point labels. The default implementation simply returns the current string.
        Parameters:
        axis - axis instance where this callback as been defined
        item - label of current label
        index - index of the label
        Returns:
        new label to apply to point label.
        It can return a List of strings (for multiple lines) or a string (for single line).