let markPointData = op.series[params.seriesIndex].markPoint.data; let newMarkPointData = markPointData.filter(({ name }) => name !== params.name); d1 ...
let markPointData = op.series[params.seriesIndex].markPoint.data; let newMarkPointData = markPointData.filter(({ name }) => name !== params.name); d1 = dataset[selected[0].seriesName]; let ptr = selected[0].dataIndex; // 從一個數組中刪除另一個數組中存在的元素 new_d1 = d1.filter((items) => !ptr.some((item) => d1.indexOf(items) === item));