new OverlayLayer(options)
OverlayLayer class constructor
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | Object with the following properties: Properties
|
Extends
Members
-
chart
-
Layer class constructor
- Inherited From:
Methods
-
hover(i)
-
hover function, activate data point being hovered , activate the data point for chart and legend, then run callback function
Parameters:
Name Type Description i
number index of data point to be activated
Returns:
- Type
- undefined
-
init()
-
initialise hover layer This function does the following things:
- update legend and chart to show the latest data point as action
- listen to touchmove event on mobile to update active data point for legend and chart
- listen to mousemove event to update active data point for legend and chart
- Overrides:
Returns:
- Type
- undefined
-
render()
-
render the layer
- Inherited From:
Returns:
render the layer with correct width and height
- Type
- undefined