ngx-echarts icon indicating copy to clipboard operation
ngx-echarts copied to clipboard

series still present after removing them

Open kgrigorian opened this issue 5 years ago • 4 comments

When updating chart both using setOption or merge with new series (removed 1 for example) it still shows on legend and tooltip.

kgrigorian avatar Apr 16 '19 11:04 kgrigorian

got the same problem. and I did check the config.series, the series was definitely removed..

ileodo avatar Feb 06 '22 21:02 ileodo

I have this issue too using setOption, can add more series but cannot unset the old one. How do I fix that?

dspasyuk avatar Jul 11 '22 20:07 dspasyuk

try to use notMerge={true}

maq0n avatar Jun 27 '23 09:06 maq0n

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:

  1. Totally removal: use notMerge: true, all of the components will be removed.
  2. 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.

sbruno-insight-decision avatar Mar 06 '24 09:03 sbruno-insight-decision