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
valuedouble- the data value
stepdouble- 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