Skip to content

Commit

Permalink
Merge pull request #6576 from cryogenian/item-value-unshift
Browse files Browse the repository at this point in the history
check value field and unshift it if it's presented
  • Loading branch information
100pah committed Sep 8, 2017
2 parents 6caf9fc + a12f647 commit 7c84061
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/chart/helper/whiskerBoxCommon.js
Expand Up @@ -55,7 +55,11 @@ define(function(require) {
var data = option.data;

addOrdinal && zrUtil.each(data, function (item, index) {
zrUtil.isArray(item) && item.unshift(index);
if (item.value && zrUtil.isArray(item.value)) {
item.value.unshift(index);
} else {
zrUtil.isArray(item) && item.unshift(index);
}
});

var defaultValueDimensions = this.defaultValueDimensions;
Expand Down Expand Up @@ -121,4 +125,4 @@ define(function(require) {
seriesModelMixin: seriesModelMixin,
viewMixin: viewMixin
};
});
});

0 comments on commit 7c84061

Please sign in to comment.