public interface StackLabelsFormatter
chart.getYAxis().setStackLabels(
new StackLabels()
.setEnabled(true)
.setFormatter(new StackLabelsFormatter() {
public String format(StackLabelsData stackLabelsData) {
return stackLabelsData.getTotalAsLong() + " degrees";
}
})
);
See the documentation on the format(StackLabelsData) function for more details on the
capabilities available within custom formatters.| Modifier and Type | Method and Description |
|---|---|
String |
format(StackLabelsData stackLabelsData)
Callback function to format the text of a stack label on a Y axis.
|
String format(StackLabelsData stackLabelsData)
stackLabelsData - 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.