Class Hover
java.lang.Object
software.xdev.chartjs.model.options.Hover
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
Defaultsingle
setOnHover
(JavaScriptFunction onHover) Defaultnull
-
Field Details
-
mode
-
onHover
-
-
Constructor Details
-
Hover
public Hover()
-
-
Method Details
-
getMode
- See Also:
-
setMode
Default
single
Sets which elements hover. Acceptable options are 'single', 'label', 'x-axis', or 'dataset'.
single
highlights the closest element.label
highlights elements in all datasets at the same X value.x-axis
also highlights elements in all datasets at the same X value, but activates when hovering anywhere within the vertical slice of the x-axis representing that X value.dataset
highlights the closest dataset.
-
getOnHover
- See Also:
-
setOnHover
Defaultnull
Called when any of the events fire. Called in the context of the chart and passed an array of active elements (bars, points, etc)
-