public interface ToolTipFormatter
chart.setToolTip(
new ToolTip()
.setToolTipFormatter(new ToolTipFormatter() {
public String format(ToolTipData toolTipData) {
return toolTipData.getXAsLong() + " degrees";
}
})
);
See the documentation on the format(ToolTipData) function for more details on the
capabilities available within custom formatters.| Modifier and Type | Method and Description |
|---|---|
String |
format(ToolTipData toolTipData)
Callback function to format the text of the tooltip.
|
String format(ToolTipData toolTipData)
ToolTip.setShared(boolean) option. The available data in the formatter differ a bit depending
on whether the tooltip is shared or not. In a shared tooltip, all properties except x, which is common
for all points, are kept in an array, this.points.
Available data provided in the given "ToolTipData" object are:
toolTipData - An object containing all of the data available to the formatter that it can
use to determine which text and styling to use in the tooltip.Copyright © 2015. All Rights Reserved.