apache / apache/echarts

echart.resize LineView seriesModel.coordinateSystem undefined

Open
#14,198 9 comments 0 reactions 0 assignees View on GitHub
bug en missing-demo pending waiting-for: author
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.0.0

### Steps to reproduce
1. init:
that.dauChart = echarts.init(
document.getElementById("DAU_CHART"),
"theme"
);
2.setOption
that.dauChart.setOption(that.dauData);
3.resize (function add to listener )
ChartResize: function() {
let that = this;
if (that.resizeFlag) {
clearTimeout(that.resizeFlag);
}
that.resizeFlag = setTimeout(function() {
if (that.dauChart) {
that.dauChart.resize();
}
}
that.resizeFlag = null;
}, 500);
},

console

Uncaught TypeError: Cannot read property 'type' of undefined
at LineView.render (LineView.js?7fff:433)
at Task.progress (Chart.js?1cb2:151)
at Task._doProgress (task.js?258f:141)
at Task.perform (task.js?258f:113)
at eval (echarts.js?e9ea:1381)
at GlobalModel.eval (Global.js?e001:400)
at Array.forEach ()
at each (util.js?cc6e:206)
at GlobalModel.eachSeries (Global.js?e001:397)
at renderSeries (echarts.js?e9ea:1370)

### What is expected?
locate issue
solve

### What is actually happening?
LineView.js 423
coordinateSystem may be undefined in line 427
but not checked

---
mail: liuyiqi123@hotmail.com

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.