This section describes events fired by this widget.
Fires when the widget is being removed.
Fires when the widget has finished drawing itself.
Fires when an error or warning appears in a widget.
When implementing a handling function for this event, you can access information about the occurred incident using the target field of the function's argument. This information includes the following.
Contains the ID of the incident. The full list of IDs can be found in the Errors and Warnings section.
Contains the type of the incident. This field equals 'error' for errors or 'warning' for warnings.
Contains the argument of the incident's message. The content of this field varies greatly, depending on the incident. For example, it may contain the name of the data source field that was not specified correctly, or the name of the option that was not set properly.
Contains the text passed to the browser console. This text includes the content of the args field, if there is any.
Contains the name of the widget that produced the error or warning.
Contains the currently used version of the ChartJS library.
Fires when the widget is initialized.
Fires after an option of the component is changed.
Fires when a sparkline's tooltip becomes hidden.
The sparkline's tooltip becomes invisible when a user moves the mouse cursor outside of the widget.
When a tooltip is made hidden, you can perform specific actions by handling this event. To do this, implement a handling function and assign it to the onTooltipHidden option. When implementing a handling function, use the object passed to it as its parameter. This object will provide you with the widget instance and its container.
Fires when a sparkline tooltip appears.
The sparkline tooltip appears when a user hovers the mouse cursor over it.
When a tooltip appears, you can perform specific actions by handling this event. To do this, implement a handling function and assign it to the onTooltipShown* option. When implementing this function, use the object passed to it as its parameter. This object will provide you with the widget instance and its container.