Open LK007CX opened 4 hours ago
@LK007CX It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
类别是 y 值还是什么?理论上只有点(itemStyle)有数据,线段(lineStyle)对应两个数据,很难说对应什么
Version
4.9.0
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-sections
Steps to Reproduce
这是我的代码的最小demo
Current Behavior
目前这段代码,报错信息为: echarts.min.js:45 Uncaught TypeError: Cannot read properties of undefined (reading 'coord') at gS (echarts.min.js:45:338543) at e.render (echarts.min.js:45:341108) at t.progress (echarts.min.js:45:166893) at t._doProgress (echarts.min.js:45:135412) at t.perform (echarts.min.js:45:134984) at echarts.min.js:45:216047 at e. (echarts.min.js:45:116287)
at Array.forEach ()
at E (echarts.min.js:35:5071)
at e.eachSeries (echarts.min.js:45:116207)
Expected Behavior
我想根据不同的类别(类别1,类别2...),去设置当前线条,不同区域的颜色,比如类别1对应红色,如何修复这段代码?
Environment
Any additional comments?
No response