Class TooltipItem


  • public class TooltipItem
    extends NativeObjectContainer
    Contains all info for every item of tooltip.
    Created and passed by CHART.JS.
    It uses in the tooltips callbacks.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getChart

        public final IsChart getChart()
        Returns the CHARBA chart instance.
        Returns:
        the CHARBA chart instance
      • getLabel

        public final String getLabel()
        Returns the label for the tooltip.
        Returns:
        the label for the tooltip.
      • getFormattedValue

        public final String getFormattedValue()
        Returns the formatted value for the tooltip.
        Returns:
        the formatted value for the tooltip.
      • getDatasetIndex

        public final int getDatasetIndex()
        Returns the dataset index of the chart
        Returns:
        the dataset index of the chart.
      • getDataIndex

        public final int getDataIndex()
        Returns the index of the data inside the dataset.
        Returns:
        the index of the data inside the dataset.
      • getElement

        public final ChartElement getElement()
        Returns the chart element (point, arc, bar, etc.) for this tooltip item.
        Returns:
        the chart element (point, arc, bar, etc.) for this tooltip item.