Open ob-ARC opened 2 days ago
not-a-bug, visualMap.selected is not included in chart configuration option API. But it could be set by action selectDataRange. Dispatch this action after your myChart.setOption call. 📌 please close issue if problem solved.
Ah, so only stuff I can actually configure via setOption() is part of the merging mechanism? Good to know, I did not realize this from the documentation. Thanks!
Version
5.5.1
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=calendar-heatmap&code=GYVwdgxgLglg9mABAcwKZQGowE5RAQwBsARfKfACgE9V9sBKRAbwChFEIEBnKRAEzKpEAXkQBqVBAAWdKFwB0sALap5ABzpdU1WtnGIA5AFoADAEZTZg_QDcbDt16owfEeMkzcC5ao3YtFGI0dPpm-sbmltZ27JxgPPz4VAAqMCpuAMwAbCYmiABUiABMACwFiGa5JjEO8bwC5G4A2gC6NcBwehSE6Ig-bg2oNn1pQgA8iM58w_1iogIpo4ys7OwN-OogXFIUTfark9Ky3qPyHdhKZBQ-ADSGTFSPVAC-RkwAsu-vTHx8zwZ3YBELT0G77VbvMhSM6EOCdCiQqDQ7D4FxwJQURiFSpVejglq2ezPezYdAgbBIdZ2YlwNSwBBuFYjKA9ABczHBUFp7IyJjBBx6wCg7IMEGcUFQ2ABnNQAA9hYZSDBCFREABlCVqRAAYTg4CgBiJ_L6cMIsDU7KYz2NADcYFwCIRIRaOQclDAwOy-eDLrL2Tjcsb2FAqGpUCK1DBJKgAO721DSg6dKNgBUGKTJgBeCHIhETq0FabFqcl-eD3MQWQArEb7BAiFM6JbORWzEVvQLUEKeR3VtgYMgpAreUGOKhCIQ1TBM-HEE0DPgQFyARUMi1RyiwGgRe2zFky4gYBKlBqqGzXQdEAAjTp8SUAdRgfCRXvkNYO1vBwWwABl8Ffx0tRBtjgGN2SBQgtEQYl2E_dgtH7VAuGbA4wHwFQRQQqMuCsUcQzDEUpFoKBLjUA9OFvD1BDVKgeFQJQRXrHoXDoA91nZNBMBwPAiFIcgKAMXd9zxWCWGeOwWCUKhtU8KB5AQASIEIGAIAAaxXAwsKQldQEgekkAoPx0K4ZZ7BANRBj4yhCWeQkWF06B4CQczLLIayLx6XhaV4UQrRqTzgMlbCAEFsBRVVRFaGotK4ULws2bYKCYRA0IwwwYtwxJyA49AsFwR0rIEoTrGgwl2G8-QYrcGK4qSGo4i4OAenkWFkAoKSZNkeROIAeTpJzMXkO0HSIZ0mhMFpKvHSQJT4MrEA62SpqgPr9Iobz5oaprVFa9rpKW3r-oU-ghvtR0xomqaemgVA5upIA
Steps to Reproduce
In the given example, deselect one or more ranges from the visualMap, then click into the chart to trigger the event handler which will call myChart.setOption(). See how the selected state of the visualMap is reset (also reflected by console output).
Current Behavior
Although in normal merge mode, visualMap.selected resets during setOption().
Expected Behavior
in merge mode, existing components should not change if not being merged with the given option.
Environment
Any additional comments?
No response