public interface DataLabelsFormatter
chart.setSeriesPlotOptions(
new SeriesPlotOptions()
.setDataLabels(
new DataLabels()
.setFormatter(new DataLabelsFormatter() {
public String format(DataLabelsData dataLabelsData) {
return dataLabelsData.getYAsLong() + " degrees";
}
})
)
);
See the documentation on the format(DataLabelsData) function for more details on the
capabilities available within custom formatters.| Modifier and Type | Method and Description |
|---|---|
String |
format(DataLabelsData dataLabelsData)
Callback function to format the text of a data label.
|
String format(DataLabelsData dataLabelsData)
dataLabelsData - 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.