You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry,the Minimal Reproduction just describe my actions, it cant reproduction the bug,i dont konw why.
this is the step:
1.quick Zoom the chart. and then scroll the mouse wheel to switch charts, it will clear the chart and reinit it.
2.ma line remaining on the chart.
this is my switch code:
agree, and suspect the bug is related to series on multiple grids - Demo.
myChart.clear() works for:
one series per grid (ex. without MA30 line in first grid)
multiple series in a single grid (ex. without Volume bars in second grid)
When multiple series in some grid AND series in each grid, then myChart.clear() does not remove some series.
Also for the workaround - myChart.getZr().clear(); needs to follow myChart.clear(); - at least in my Demo.
Version
5.5.0
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=candlestick-brush&code=MYewdgzgLgBArgBwMIgDYgE4wLwwOQDEADEQCYCGAzMHgNwBQokspIA7mCulroQKbASJOvQBmcMMCgBLcDAgJU0qABFyUcgAoM5Nmo0BKGAG96MGKj6xg6vgHNMAT33kcMANoBdBucuwAbuSocHwQbl4-FlYw_mhwALah4d5mMKKYMJp-MNJuRLQ5MAA8MDp66uQAdJZgdlAAFgXSANTNRqbm5jZQ9k4ulQhwEPXaui7u0p6VCkrAfJpEADQwAIwG7kSeBpHmgcGhA0MjZeOT26m7cYkQh8OaE8snFROe7gAsno9jz5MbnjAAPlK3w0L3cK3-AH5VjAAFwwAC0EPO5gAvqkMFY4BgwCYLjBur0MM4KvDCQ5iS5Fvi9iEIPDaaFqZ0YldQgy2RBUqiGOjxJIZHIbKhgHBULYALIAQU0FEcKAkUGWFEMeN25CwmIgYtguAiqXSWE0gSwuVwSyiuNwKqqjJuNTqjUKJRqTVa7Xx0lEmVyJTlCrAUA9LPMWp1txGeAReBRIaYMjAIR2MHRLJN8gSeWThsy6YAVlmYAW_eR5SBFQU8-61SHtfEYM1rRVKnaJoii68IcnU50w6goBHNM1NHWYAB6GD-8uBgyVKAgABi0gAHnxSJpKAZYz3MVBsbi-1BefRsk8NA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ZWxKEAlA3XraLV1VVU16eKzGsrGcKv-XFo-3uwno5soNmK9wNWM5gHIIkRKeU2AFSKmEEqZVesdfwDYPylhoDYfrQBm0LZNXkwzsoPg8R4aIzHeq3F6MDV6o9fKzARBFXsE4B99Vb0Pp6vhK3UNCHSCfZgED1K7cfvwALqICHizquWuW6tqt1V9v3PwE887jbhSinFD0aUmhuWAYMAp-IS9g5yY9U8x7-9b18y_soRwxLKhVRR8-pbZcVtrcqlKBqHq0u44Q_jjQZIghE8lDKKKyoKiU4XdT0KWKNPbwzgzhGTP1XWUbmzjnXPtNLTCyyct_PMdShatjqteOPUAcJ2KWXmgWoK8MFTmnau6ea4Q4z57c8Wf64Rob7nOnecowt4laUHUbeJTtxnB30unck5lB1N3dEPeq_qxrsuWunuqc6Hr4ABuYABKNyjfNaJdMR4x4lTRbJY_4AbmlD1TXct_pRmJ_Z7ezMJ8bZd2IwRrixZDF8zoDFFhydjCyPSnFuKVBBgodQ38pQsTwoFUXeAAXDAQRqSeC2MpWu3_UZ8B3HkIdeec0A107yOVvh4PALVs0IiIFgl_TVapP7f6_hE1u2ssjb0OWJW6nxDHwYmPDEGJlsneVmREgmVSFnzfhbUEgwAWXMHdkQPnxvCgDWVQNnBgLQIJHAHQksGqBADsE0AACJABQO0ABM0wAC0VAALhMAAdTQAO2NKD6IgA
Steps to Reproduce
sorry,the Minimal Reproduction just describe my actions, it cant reproduction the bug,i dont konw why.
this is the step:
1.quick Zoom the chart. and then scroll the mouse wheel to switch charts, it will clear the chart and reinit it.
2.ma line remaining on the chart.
this is my switch code:
i have use the
clear()
to clear the all chart, but there are still some residues.202405041453.mp4
Current Behavior
ma line remaining on the chart.
Expected Behavior
Completely clear the chart.(i use myChart.getZr().clear() can achivev).
Environment
Any additional comments?
use myChart.getZr().clear() can achivev completely clear the chart, but myChart.clear() there will be residue.
The text was updated successfully, but these errors were encountered: