Skip to content

Commit 611a832

Browse files
committed
fix(parallel): calculate axis extent after processing series extents
1 parent 18f5f85 commit 611a832

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/coord/parallel/Parallel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,14 @@ class Parallel implements CoordinateSystemMaster, CoordinateSystem {
185185
each(this.dimensions, function (dim) {
186186
const axis = this._axesMap.get(dim);
187187
axis.scale.unionExtentFromData(data, data.mapDimension(dim));
188-
axisHelper.niceScaleExtent(axis.scale, axis.model);
189188
}, this);
190189
}, this);
190+
191+
// do after all series processed
192+
each(this.dimensions, function (dim) {
193+
const axis = this._axesMap.get(dim);
194+
axisHelper.niceScaleExtent(axis.scale, axis.model);
195+
}, this);
191196
}
192197

193198
/**

0 commit comments

Comments
 (0)