fix: update event associations with the duration step (#122)

This commit is contained in:
Fine0830
2022-07-19 14:11:41 +08:00
committed by GitHub
parent 4e022ff29a
commit ec7a8bbfa9
2 changed files with 20 additions and 2 deletions

View File

@@ -115,6 +115,12 @@ watch(
}
if (props.filters) {
if (props.filters.isRange) {
const list = props.option.series[0].data.map(
(d: (number | string)[]) => d[0]
);
if (!list.includes(props.filters.duration.endTime)) {
return;
}
const markArea = {
silent: true,
itemStyle: {