echarts-bot[bot] commented on issue #20474:
URL: https://github.com/apache/echarts/issues/20474#issuecomment-2456911611
@ZBeanDan 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**BODY**
### 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%',
// Adjust the left distance containLabel: true // Whether the grid area
contains the scale label of the coordinate axis}, series:
props.data?.lineData?.slice(0, 4) } ;
### Steps to Reproduce


When clicking the title of the legend configuration, the browser console
prompts the above error
### 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
Display normally, no error reported when clicked
### Environment
```markdown
-OS:Mac Pro
- Browser:Chrome 130.0.6723.92
- Framework:vue3
```
### Any additional comments?
_No response_
</details>
--
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]