This section describes events exposed by this widget.
To handle events, use one of the following methods.
Attach a handler to a widget option
Assign a callback function to the widget option that takes on a handler for the required event. The events that can be handled within the widget's configuration object are listed in the Configuration section. All these events have names starting with on.
Attach several handlers for one or several events to a widget
Specify event handling functions for one or more events using the on() method. All the widget events are listed in the Events section.
Fires when you dispose of this component.
Fires when the widget has finished drawing itself.
To learn how to handle widget events, see the Handle Events topic.
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.
For more information about handling widget events, see the Handle Events topic.
Fires after an option of the component is changed.