提交 9b94ef1f 编写于 作者: D deqingli

fix(echarts): fix little error in process setOption

上级 099367a2
......@@ -361,7 +361,7 @@ echartsProto.setOption = function (option, notMerge, lazyUpdate) {
if (!this._model || notMerge) {
var optionManager = new OptionManager(this._api);
var theme = this._theme;
var ecModel = this._model = new GlobalModel(null, null, theme, optionManager);
var ecModel = this._model = new GlobalModel();
ecModel.scheduler = this._scheduler;
ecModel.init(null, null, theme, optionManager);
}
......
......@@ -88,7 +88,7 @@ export default function (option, isTheme) {
if (seriesType === 'gauge') {
var pointerColor = get(seriesOpt, 'pointer.color');
pointerColor != null
&& set(seriesOpt, 'itemStyle.normal.color', pointerColor);
&& set(seriesOpt, 'itemStyle.color', pointerColor);
}
compatLayoutProperties(seriesOpt);
......
......@@ -81,6 +81,7 @@ function convertNormalEmphasis(opt, optType, useExtend) {
}
}
}
function removeEC3NormalStatus(opt) {
convertNormalEmphasis(opt, 'itemStyle');
convertNormalEmphasis(opt, 'lineStyle');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册