Class Plugins
java.lang.Object
software.xdev.chartjs.model.options.Plugins
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
getZoom()
The legend configuration is passed into the options.legend namespace.setSubtitle
(Title subtitle) The subtitle configuration is passed into the options.subtitle namespace.The title configuration is passed into the options.title namespace.setTooltip
(Tooltip tooltip) The tooltip label configuration is nested below the tooltip configuration using the callbacks key.A zoom and pan plugin for Chart.js.
-
Field Details
-
title
-
subtitle
-
legend
-
tooltip
-
zoom
-
-
Constructor Details
-
Plugins
public Plugins()
-
-
Method Details
-
getTitle
- See Also:
-
setTitle
The title configuration is passed into the options.title namespace. The global options for the chart title is defined in Chart.defaults.global.title. -
getSubtitle
- See Also:
-
setSubtitle
The subtitle configuration is passed into the options.subtitle namespace. The global options for the chart subtitle is defined in Chart.defaults.global.subtitle. -
getLegend
- See Also:
-
setLegend
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
- See Also:
-
setTooltip
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.
-
getZoom
- See Also:
-
setZoom
A zoom and pan plugin for Chart.js. Panning can be done via the mouse or with a finger. Zooming is done via the mouse wheel or via a pinch gesture.Note: Requires the
Zoom
plugin installed.
-