Skip to content

Commit

Permalink
check value field and unshift it if it's presented
Browse files Browse the repository at this point in the history
  • Loading branch information
cryogenian committed Sep 1, 2017
1 parent c6a94be commit a12f647
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 a12f647

Please sign in to comment.