T
- type of legend element which contains the textpublic interface HtmlLegendCallback<T extends HasLegendText>
HtmlLegend
plugin.Modifier and Type | Method and Description |
---|---|
SafeHtml |
generateText(IsChart chart,
T item,
String currentText)
Returns a text of legend for a specific item or legend's title, as HTML
|
SafeHtml generateText(IsChart chart, T item, String currentText)
chart
- chart instanceitem
- item which represents the text to createcurrentText
- current text provided by legend labels callback.