diff --git a/src/component/toolbox/feature/MagicType.ts b/src/component/toolbox/feature/MagicType.ts index e13d6db6cd..e9aec1fbfc 100644 --- a/src/component/toolbox/feature/MagicType.ts +++ b/src/component/toolbox/feature/MagicType.ts @@ -116,7 +116,7 @@ class MagicType extends ToolboxFeature { zrUtil.defaults(newSeriesOpt, seriesModel.option); (newOption.series as SeriesOption[]).push(newSeriesOpt); } - // Modify boundaryGap + // Modify series const coordSys = seriesModel.coordinateSystem; if (coordSys && coordSys.type === 'cartesian2d' && (type === 'line' || type === 'bar')) { const categoryAxis = coordSys.getAxesByScale('ordinal')[0]; @@ -130,7 +130,6 @@ class MagicType extends ToolboxFeature { for (let i = 0; i <= axisIndex; i++) { (newOption[axisType] as any)[axisIndex] = (newOption[axisType] as any)[axisIndex] || {}; } - (newOption[axisType] as any)[axisIndex].boundaryGap = type === 'bar'; } } };