Interface ValueFormatter


public interface ValueFormatter
Turns a data value into the text an axis, tooltip or data label shows.
  • Method Summary

    Modifier and Type
    Method
    Description
    format(double value, double step)
    Formats one value.
  • Method Details

    • format

      String format(double value, double step)

      Formats one value.

      Parameters
      • value: the data value

      • step: the spacing between neighbouring ticks, or 0 when the value is not a tick; lets a formatter choose a precision that keeps adjacent labels distinct

      Returns

      the label text, never null