diff --git a/src/chart/bar/BaseBarSeries.ts b/src/chart/bar/BaseBarSeries.ts index 162cf72140..47411cd39d 100644 --- a/src/chart/bar/BaseBarSeries.ts +++ b/src/chart/bar/BaseBarSeries.ts @@ -86,7 +86,11 @@ class BaseBarSeriesModel = BaseBarSeri return createSeriesData(null, this, {useEncodeDefaulter: true}); } - getMarkerPosition(value: ScaleDataValue[], dims?: typeof dimPermutations[number], startingAtTick: boolean = false) { + getMarkerPosition( + value: ScaleDataValue[], + dims?: typeof dimPermutations[number], + startingAtTick?: boolean + ) { const coordSys = this.coordinateSystem; if (coordSys && coordSys.clampData) { // PENDING if clamp ? diff --git a/src/component/marker/MarkAreaView.ts b/src/component/marker/MarkAreaView.ts index 9b2476d36a..8f99610770 100644 --- a/src/component/marker/MarkAreaView.ts +++ b/src/component/marker/MarkAreaView.ts @@ -183,7 +183,7 @@ function getSingleMarkerEndPoint( else { pointValue[1] = (clampPointValue0[1] > clampPointValue1[1]) ? pointValue0[1] : pointValue1[1]; } - // Use the getMarkerPoisition + // Use the getMarkerPosition point = seriesModel.getMarkerPosition( pointValue, dims, true ); diff --git a/src/model/Series.ts b/src/model/Series.ts index 5a9dd62607..e2a5577b9e 100644 --- a/src/model/Series.ts +++ b/src/model/Series.ts @@ -103,7 +103,8 @@ interface SeriesModel { getMarkerPosition( value: ScaleDataValue[], dims?: typeof dimPermutations[number], - startingAtTick?:boolean): number[]; + startingAtTick?: boolean + ): number[]; /** * Get legend icon symbol according to each series type diff --git a/test/bar-markArea.html b/test/bar-markArea.html index 81de2f543a..5a4acd722c 100644 --- a/test/bar-markArea.html +++ b/test/bar-markArea.html @@ -25,7 +25,6 @@ - @@ -43,137 +42,128 @@