public interface TooltipLabelCallback
Modifier and Type | Method and Description |
---|---|
default String |
onAfterLabel(IsChart chart,
TooltipItem item)
Returns text to render after an individual label.
If returns null , it will be ignored. |
default String |
onBeforeLabel(IsChart chart,
TooltipItem item)
Returns text to render before an individual label.
This will be called for each item in the tooltip. If returns null , it will be ignored. |
default String |
onLabel(IsChart chart,
TooltipItem item)
Returns text to render for an individual item in the tooltip.
If returns null , it will be ignored. |
default TooltipLabelColor |
onLabelColor(IsChart chart,
TooltipItem item)
Returns the colors and borders to render for the tooltip item.
If returns null , it will be ignored. |
default TooltipLabelPointStyle |
onLabelPointStyle(IsChart chart,
TooltipItem item)
Returns the point style to use instead of color boxes if
usePointStyle is true.Default implementation uses the point style from the data set points. |
default IsColor |
onLabelTextColor(IsChart chart,
TooltipItem item)
Returns the colors for the text of the label for the tooltip item.
If returns null , it will be ignored. |
default String onBeforeLabel(IsChart chart, TooltipItem item)
null
, it will be ignored.chart
- chart instanceitem
- tooltip itemdefault String onLabel(IsChart chart, TooltipItem item)
null
, it will be ignored.chart
- chart instanceitem
- tooltip itemdefault TooltipLabelColor onLabelColor(IsChart chart, TooltipItem item)
null
, it will be ignored.chart
- chart instanceitem
- tooltip itemdefault TooltipLabelPointStyle onLabelPointStyle(IsChart chart, TooltipItem item)
usePointStyle
is true.chart
- chart instanceitem
- tooltip itemdefault IsColor onLabelTextColor(IsChart chart, TooltipItem item)
null
, it will be ignored.chart
- chart instanceitem
- tooltip itemdefault String onAfterLabel(IsChart chart, TooltipItem item)
null
, it will be ignored.chart
- chart instanceitem
- tooltip item