Class Plugins

java.lang.Object
software.xdev.chartjs.model.options.Plugins

public class Plugins extends Object
  • Field Details

    • title

      protected Title title
    • legend

      protected Legend legend
    • tooltip

      protected Tooltip tooltip
  • Constructor Details

    • Plugins

      public Plugins()
  • Method Details

    • getTitle

      public Title getTitle()
      See Also:
    • setTitle

      public Plugins setTitle(Title title)
      The title configuration is passed into the options.title namespace. The global options for the chart title is defined in Chart.defaults.global.title.
    • getLegend

      public Legend getLegend()
      See Also:
    • setLegend

      public Plugins setLegend(Legend legend)
      The legend configuration is passed into the options.legend namespace. The global options for the chart legend is defined in Chart.defaults.global.legend.
    • getTooltip

      public Tooltip getTooltip()
      See Also:
    • setTooltip

      public Plugins setTooltip(Tooltip tooltip)
      The tooltip label configuration is nested below the tooltip configuration using the callbacks key. The tooltip has the following callbacks for providing text. For all functions, 'this' will be the tooltip object created from the Chart.Tooltip constructor.

      All functions are called with the same arguments: a tooltip item and the data object passed to the chart. All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.