ZBeanDan opened a new issue, #20474:
URL: https://github.com/apache/echarts/issues/20474
### Version
"echarts": "^5.5.0",
### Link to Minimal Reproduction
const option = { title: { text: props.title, left:
'center', bottom: 20 }, tooltip: { trigger: 'item'
}, xAxis: { type: 'category', data:
props.data?.xaxis }, yAxis: { type: 'value' },
legend: { left: 'center', textStyle: { color: '#000'
}, data: props.data?.legend?.slice(0, 4) }, grid: {
left: '4%', // 调整左侧距离 containLabel: true // grid 区域是否包含坐标轴的刻度标签
}, series: props.data?.lineData?.slice(0, 4) };
### Steps to Reproduce


点击legend配置的标题时,浏览器控制台提示如上错误
### Current Behavior
Uncaught TypeError: Cannot read properties of undefined (reading 'type')
at LineView2.render (echarts.js?v=1c336748:33743:38)
at Task2.progress (echarts.js?v=1c336748:20328:20)
at Task2._doProgress (echarts.js?v=1c336748:17963:12)
at Task2.perform (echarts.js?v=1c336748:17942:18)
at echarts.js?v=1c336748:24024:26
at GlobalModel2.<anonymous> (echarts.js?v=1c336748:16359:12)
at Array.forEach (<anonymous>)
at each (echarts.js?v=1c336748:425:9)
at GlobalModel2.eachSeries (echarts.js?v=1c336748:16357:7)
at renderSeries (echarts.js?v=1c336748:24015:17)
### Expected Behavior
正常展示,点击时不报错
### Environment
```markdown
- OS:Mac Pro
- Browser:Chrome 130.0.6723.92
- Framework:vue3
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]