ngx-echarts
ngx-echarts copied to clipboard
series still present after removing them
When updating chart both using setOption or merge with new series (removed 1 for example) it still shows on legend and tooltip.
got the same problem. and I did check the config.series, the series was definitely removed..
I have this issue too using setOption, can add more series but cannot unset the old one. How do I fix that?
try to use notMerge={true}
I have the same problem. Maybe the ngx-echarts library can use the second option explained in the ECharts documentation: https://echarts.apache.org/en/api.html#echartsInstance.setOption
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.