[starting from version: 2.3]
It is triggered when some error occurred during the loading of data. To track when data starts loading, use loadingdata. To make sure that the loading of the data was successful, use dataloaded.
This event can also be triggered when options.showEmptyData is set to false
.
The dataerror
is supported by "json"
, "csv"
, and "elasticsearch"
data source types. For "microsoft analysis services"
and "api"
data source types, use olapstructureerror.
Parameter/Type | Description |
---|---|
params Object | Contains information about the event. |
params.error String | The error message returned from the server side. |
pivot.on('dataerror', function (e) {
alert('Error with data!' + e.error);
});
Open the example on JSFiddle.