public interface LegendLabelsFormatter
chart.setLegend(
new Legend()
.setLegendLabelsFormatter(
new LegendLabelsFormatter() {
public String format(LegendLabelsData legendLabelsData) {
return legendLabelsData.getSeriesName() + " (click to hide)";
}
}
)
);
See the documentation on the format(LegendLabelsData) function for more details on the
capabilities available within custom formatters.| Modifier and Type | Method and Description |
|---|---|
String |
format(LegendLabelsData legendLabelsData)
Callback function to format the text of a label in the legend.
|
String format(LegendLabelsData legendLabelsData)
legendLabelsData - 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.