提交 678a33b9 编写于 作者: P pissang

fix(visualMap): fix error when target series not exists.

上级 fdcc88d1
......@@ -261,7 +261,10 @@ class VisualMapModel<Opts extends VisualMapOption = VisualMapOption> extends Com
context?: Ctx
) {
zrUtil.each(this.getTargetSeriesIndices(), function (seriesIndex) {
callback.call(context, this.ecModel.getSeriesByIndex(seriesIndex));
const seriesModel = this.ecModel.getSeriesByIndex(seriesIndex);
if (seriesModel) {
callback.call(context, seriesModel);
}
}, this);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册