Version
5.0.0
Steps to reproduce
- 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
6条答案
按热度按时间9rnv2umw1#
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.
If you are interested in the project, you may also subscribe our mailing list .
Have a nice day! 🍵
pbossiut2#
@liuyiqi123 Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz .
11dmarpk3#
l have too.. How to solve ?
Codepen is fine。。。。。。。。。。。 -_-
kq0g1dla4#
I've solved the problem. Try not to assign objects from echarts instances to Vue。
this.mycharts = charts.init(). ❌
const mycharts = charts.init() ✅
bd1hkmkf5#
fine...... 在 2022年4月20日星期三,郑海洋 ***@***.***> 写道: l have too.. How to solve ? Codepen is fine。。。。。。。。。。。 -_- — Reply to this email directly, view it on GitHub <#14198 (comment)>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AM6TLQBZTRY3TDAIPAYSZLTVF6ZFNANCNFSM4XAO64ZQ > . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>…
-- Rudy 微信:facenano / @***. 主页: https://fireroothacker.86p.net 暗网邮箱: @***.
niknxzdl6#
Hey,
Had the same issue In Vue, I was setting my chart to ref. Setting it to shallowRef fixed it for me.
const chart = shallowRef<echarts.ECharts | undefined>()
chart.value = echarts.init(chartContainerRef.value, undefined, { ... })