You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "TimGin117 (via GitHub)" <gi...@apache.org> on 2025/04/07 08:55:14 UTC
[I] [Bug] 使用图例隐藏 series 图表后,更新 series 图表 symbolSize 配置,图表自动重新渲染后没有应用到最新的 symbolSize 值 [echarts]
TimGin117 opened a new issue, #20898:
URL: https://github.com/apache/echarts/issues/20898
### Version
5.6.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-stack&lang=js
### Steps to Reproduce
1. 点击图例配置,隐藏 email 图表
2. 更新 option.series[0].symbolSize 值,如 5 -> 0
3. 图表更新 option 触发重新渲染,隐藏的 email 图表重新展示,但是 symbolSize 配置仍为 5
4. 手动点击运行,再次重新渲染图表才能正确展示最新设置的 symbolSize

### Current Behavior
隐藏的图表自动重新渲染后没有应用最新的 series 配置
### Expected Behavior
预期隐藏图表后,更新 option 能应用最新的 series 配置
### Environment
```markdown
- OS: macOS
- Browser: Chrome
- Framework: react
```
### 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: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 使用图例隐藏 series 图表后,更新 series 图表 symbolSize 配置,图表自动重新渲染后没有应用到最新的 symbolSize 值 [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #20898:
URL: https://github.com/apache/echarts/issues/20898#issuecomment-2782515179
@TimGin117 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>
**TITLE**
[Bug] After hiding a series chart with a legend, the symbolSize configuration of the series chart is updated, and the chart is automatically re-rendered without being applied to the latest symbolSize value
**BODY**
### Version
5.6.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-stack&lang=js
### Steps to Reproduce
1. Click on the legend configuration to hide the email chart
2. Update option.series[0].symbolSize value, such as 5 -> 0
3. Chart update option triggers re-rendering, and the hidden email chart is re-presented, but the symbolSize configuration is still 5
4. Click Run manually and re-render the chart again to correctly display the latest symbolSize

### Current Behavior
The hidden chart is automatically rerendered without the latest series configuration applied
### Expected Behavior
After the chart is expected to be hidden, update option can apply the latest series configuration
### Environment
```markdown
- OS: macOS
- Browser: Chrome
- Framework: react
```
### 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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 使用图例隐藏 series 图表后,更新 series 图表 symbolSize 配置,图表自动重新渲染后没有应用到最新的 symbolSize 值 [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20898:
URL: https://github.com/apache/echarts/issues/20898#issuecomment-2794381172
Oh, I understand the bug now. Everything is fine when the line legend is enabled.
But when the line legend item is disabled, setting _line.symbolSize_ to zero(0) thru _setOption_ does not work. It seems as if there is a hidden _emphasis.symbolSize_ that changes instead of _line.symbolSize_. [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-stack&lang=js&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDOOYGwsADJQDRHrUCuARmGRQ7FKAYywQRAa1gxYAQ2gBPWOOg5Y1RQFsewLNQawRACwUBzdQFEtciFgAGBzTr0BlCAC8crWMYgATfxw4YAAnWGhgMEoiAF92dFwLaH8CJHiiUgBBUghqNKEwRRB8WFE5fjMwxTYhXS4UuVDFAHE5EAIAMzl9byF_CrkCAG1KAFkYNjKAFS4cKcoAdRx_BenjLgWAMVCIBdcK_YbKAF04hNhFHLy0jPQwYD1IDuQMXbMLUKo5XOpKWDuGhwuxw-VgwyEqGIxGgci0pUo1lsWFq0PuxQRqnmF2h1DAcikVGmUR6qLRzl0WHcXgITBxxBwWhApmoN1eEH4WlcRVwaSMejCVB4WAJkn-sQB9PQA3xIwAjAAmOmwOUAZgVPjlTDlmtVABYfABOZUK1UmrVnaGA9BQtGw-FUACq0CgcCy_j-UowGKoWLJuPxhJmJJRXopbk8pQAHF6ZUNwQqlZqoxqVYadbBTQbM8afKqzXmLUJYkQzrEANwoMBmLAIWDdXqVrSKADCplCYAAdDAABSicRSKY9gBuw4AlAgAHyEdDNttNLu0MAAeXArp7SFgQloILBm_DVMjBGrtYA_MxYARE5LChzeUh-OQqEvDJQANSwHsn2DnygsS9lImlBjiW6
CxGOlb3DWdYAIQnpW4HlkAA)
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 使用图例隐藏 series 图表后,更新 series 图表 symbolSize 配置,图表自动重新渲染后没有应用到最新的 symbolSize 值 [echarts]
Posted by "TimGin117 (via GitHub)" <gi...@apache.org>.
TimGin117 commented on issue #20898:
URL: https://github.com/apache/echarts/issues/20898#issuecomment-2785139012

@helgasoft it still has problem,when hidden the series and then setOption to change symbolSize,chart render is wrong
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] 使用图例隐藏 series 图表后,更新 series 图表 symbolSize 配置,图表自动重新渲染后没有应用到最新的 symbolSize 值 [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20898:
URL: https://github.com/apache/echarts/issues/20898#issuecomment-2784486648
This is Editor's behavior. There is no problem when using _setOption_ - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-stack&lang=js&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDKYAhgMYDWOAJrADITQ6UA0RdAGcArgCMwZCrEoMsEZrBiw60AJ6x5PWELUBbMcCxCMwWAwAWqgOY5YAUT10IWAAYndBo9QgAvHHywFhCsrDhwwABOsNDAYJREAL4C6GDARpAgBKjEGJEQ1raRVHSkEEIJ6MlEuLbQrNlVKbDW-Q2EubgAZtKUAMwApPyCsPnWFr0ALEPN6IZgaXpUg8O5DDD03Bx0YjhYBGCRIjhJzWlGhqTZI104dGAikfgduTp0AG44AIJCAJJOtmyiRGwKaRFIXzKQmuuTAahAz1k9xw1iialWxEMInqdEiagA4nQsrAunRjAERqx7nQCABtSgAWRg_BkABVjizKAB1Nic1kWEScgBi-U51HuYuxlAAuqciGpIeUYcQ4QiqO8yRy5cIcPkcNDYLSRjlXtA6HpEY5nFgMbD4YitLxZsQhPRmFRWXEySzPIYsD5_HgAKzO9BU-h0gCMACYAAyBSN9aMJ2ORhN9SaBACc8dg0b6uejkdjsty1VyJtyZotVAAqtAoHAvqwKqGMPaqI7bS63UwPV6bW3wzTDdG4wmABzJ2CRrNpvMZwLRnOBPoF1fF0vEcvESvEauIgBqIRwZmbrZGqQ7Mi7bddjD7bIH3bD1KjQcLSaXqYTQczM5XWA11zSZNxBZ093QA8qAAEQgJ4GHiNtVQdbgnUvHRe37ehBww4c6STXM12nAt5zXf8-kA4DVzjLcwQrDDoJkag7kiSwHGgaw0Jfds1Rvbi7ywp8cJ4_DDSnXMsy_WAc3nKT_xjQDE3XGdCLo
2BQVgWVEgAbhQMBrCwBA8mOPS9DUABhKxIjAAA6GAAApZHkZgWQc953gASgQAA-F5zKs3E7KEHAwAAeXARsHKQEK9WhGL9D9ANngMoyAH5YFjWACGLRJEk8vTUkM4yAEJUpQfKgA).
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org