public interface AxisLabelsFormatter
chart.getXAxis().setLabels(
new XAxisLabels()
.setFormatter(new AxisLabelsFormatter() {
public String format(AxisLabelsData axisLabelsData) {
return axisLabelsData.getValueAsLong() + " degrees";
}
})
);
See the documentation on the format(AxisLabelsData) function for more details on the
capabilities available within custom formatters.| Modifier and Type | Method and Description |
|---|---|
String |
format(AxisLabelsData axisLabelsData)
Callback function to format the text of a label on an axis.
|
String format(AxisLabelsData axisLabelsData)
axisLabelsData - An object containing all of the data available to the formatter that it can
use to determine which text and styling to use for the label.Copyright © 2015. All Rights Reserved.