Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface ValueFormatter

Turns a data value into the text an axis, tooltip or data label shows.

Methods

public abstract String format(double value, double step)Formats one value.

Method details

format

public abstract String format(double value, double step)
Formats one value.

Parameters

value double
the data value
step double
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