Class Hover
java.lang.Object
software.xdev.chartjs.model.options.Hover
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()DefaultsinglesetOnHover(JavaScriptFunction onHover) Defaultnull
-
Field Details
-
mode
-
onHover
-
-
Constructor Details
-
Hover
public Hover()
-
-
Method Details
-
getMode
- See Also:
-
setMode
Default
singleSets which elements hover. Acceptable options are 'single', 'label', 'x-axis', or 'dataset'.
singlehighlights the closest element.labelhighlights elements in all datasets at the same X value.x-axisalso 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.datasethighlights 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)
-