AxisProxy can throw typeErrors
_percentWindow and _valueWindow can be null, in which case the slice call in their getters throws exceptions.
ERROR TypeError: Cannot read property 'slice' of undefined
at Jk.getDataPercentWindow (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9),
The responsible Code (https://github.com/ecomfe/echarts/blob/bf0df088c46ab958eb8bceff431906245712e217/src/component/dataZoom/AxisProxy.js )
/**
* @return {Array.
/**
* @return {Array.<number>}
*/
getDataPercentWindow: function () {
return this._percentWindow.slice();
}
A suggested Alternative
/**
* @return {Array.
/**
* @return {Array.<number>}
*/
getDataPercentWindow: function () {
return this._percentWindow ? this._percentWindow.slice() : undefined;
}
Fixed in eb1726fe6dce36b798a75303b43b3c0eca9f3518