Skip to content

Commit

Permalink
Fix boundaryGap bug when toggling between tiled and stack in toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Apr 6, 2016
1 parent 4aaf156 commit cc1a279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/toolbox/feature/MagicType.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ define(function(require) {
}
// Modify boundaryGap
var coordSys = seriesModel.coordinateSystem;
if (coordSys.type === 'cartesian2d') {
if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) {
var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
if (categoryAxis) {
var axisDim = categoryAxis.dim;
Expand Down

0 comments on commit cc1a279

Please sign in to comment.