diff --git a/src/coord/single/Single.ts b/src/coord/single/Single.ts index 4632190e41..c9226b5aae 100644 --- a/src/coord/single/Single.ts +++ b/src/coord/single/Single.ts @@ -140,7 +140,7 @@ class Single implements CoordinateSystem, CoordinateSystemMaster { const isHorizontal = axis.isHorizontal(); const extent = isHorizontal ? [0, rect.width] : [0, rect.height]; - const idx = axis.reverse ? 1 : 0; + const idx = axis.inverse ? 1 : 0; axis.setExtent(extent[idx], extent[1 - idx]); diff --git a/src/coord/single/SingleAxis.ts b/src/coord/single/SingleAxis.ts index 6009149be6..ff2db92516 100644 --- a/src/coord/single/SingleAxis.ts +++ b/src/coord/single/SingleAxis.ts @@ -43,8 +43,6 @@ class SingleAxis extends Axis { orient: LayoutOrient; - reverse: boolean; - coordinateSystem: Single; model: SingleAxisModel;