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
There are two ways to remove components:
Totally removal: use notMerge: true, all of the components will be removed.
Partially removal: use replaceMerge: [...], the specified types of components will be removed if no id matched. This mode is useful to keep the state (e.g., highlight / animation / selected area) of the other components while make removal.
Unfortunately, the react-echart library currently lacks support for the replaceMerge parameter. You can check the component internal logic and component props for further details.
This means that when updating options in react-echart, there won't be a merging of the new options with the existing ones. Instead, the update will occur without merging, which could trigger animations and color changes.
Proposal
To overcome react-echart limitations, a better approach is creating a custom echart mapping. This empowers us to address specific needs, enhance flexibility, and gain greater control over the chart functionalities in our application.
The text was updated successfully, but these errors were encountered:
Expected behavior
Support all kind of series' updates in echart plots:
Actual behavior
Supported series' updates in echart plots:
Problem description
Series deletion is not supported due to
react-echart
third-party limitations. An issue is opened since 2022. For details, see here.Partial
echartInstances.setOption
method's parameters are supported inreact-echart
mapping. Refer to the method documentation for more details.echartInstances.setOption
accepts either :parameters
or
As the official documentation explains :
Unfortunately, the
react-echart
library currently lacks support for thereplaceMerge
parameter. You can check the component internal logic and component props for further details.This means that when updating options in
react-echart
, there won't be a merging of the new options with the existing ones. Instead, the update will occur without merging, which could trigger animations and color changes.Proposal
To overcome
react-echart
limitations, a better approach is creating a customechart
mapping. This empowers us to address specific needs, enhance flexibility, and gain greater control over the chart functionalities in our application.The text was updated successfully, but these errors were encountered: