ElemeFE / v-charts

基于 Vue2.0 和 ECharts 封装的图表组件📈📊
https://v-charts.js.org
MIT License
6.8k stars 1.98k forks source link

extend 在yAxis属性传入数组后解析得到的option不正确 #911

Open git-chenjiqing opened 3 years ago

git-chenjiqing commented 3 years ago

function setExtend

 options[attr].forEach(function (option, index) {
            options[attr][index] = _extends({}, option, value);
});

修改为后我的yAxis传入数组才能正常显示图表

 options[attr].forEach(function (option, index) {
            options[attr][index] = _extends({}, option, value[index]);
});
git-chenjiqing commented 3 years ago

我不知道这样修改以后会不会对别的地方产生影响,现在我还是正常的