diff --git a/src/chart/gauge/GaugeView.ts b/src/chart/gauge/GaugeView.ts index a4bb3994c9..edf0edaf26 100644 --- a/src/chart/gauge/GaugeView.ts +++ b/src/chart/gauge/GaugeView.ts @@ -451,7 +451,7 @@ class GaugeView extends ChartView { r: r } }); - isOverlap && (progress.z2 = maxVal - (data.get(valueDim, idx) as number) % maxVal); + isOverlap && (progress.z2 = linearMap(data.get(valueDim, idx) as number, [minVal, maxVal], [100, 0], true)); return progress; } diff --git a/src/component/dataZoom/SliderZoomView.ts b/src/component/dataZoom/SliderZoomView.ts index a6545fdb3e..f0ef14fc34 100644 --- a/src/component/dataZoom/SliderZoomView.ts +++ b/src/component/dataZoom/SliderZoomView.ts @@ -686,7 +686,7 @@ class SliderZoomView extends DataZoomView { actualMoveZone.attr({ draggable: true, - cursor: getCursor(this._orient), + cursor: 'default', drift: bind(this._onDragMove, this, 'all'), ondragstart: bind(this._showDataInfo, this, true), ondragend: bind(this._onDragEnd, this),