提交 2f540c39 编写于 作者: L lang

Stacked area chart bug fix when toggling legend

上级 5a44dc16
......@@ -150,7 +150,9 @@ define(function(require) {
// In the case data zoom triggerred refreshing frequently
// Data may not change if line has a category axis. So it should animate nothing
if (!isPointsSame(this._dataArray, dataArray)) {
if (!isPointsSame(this._dataArray, dataArray)
|| !isPointsSame(this._stackedOnDataArray, stackedOnDataArray)
) {
this._updateAnimation(
data, dataArray, stackedOnDataArray, coordSys
);
......
......@@ -21,7 +21,8 @@
'echarts/component/grid',
'echarts/component/axis',
'echarts/component/dataZoom',
'echarts/component/tooltip'
'echarts/component/tooltip',
'echarts/component/markPoint'
], function (echarts) {
var chart = echarts.init(document.getElementById('main'), null, {
......@@ -64,6 +65,11 @@
normal: {
areaStyle: {}
}
},
markPoint: {
data: [{
type: 'max'
}]
}
},
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册