From 88345fe6bba37f058995cb8681c2d9ebc0a4bf22 Mon Sep 17 00:00:00 2001 From: Yue JIN <40021217+kingyue737@users.noreply.github.com> Date: Tue, 20 Aug 2024 19:18:41 +0800 Subject: [PATCH 1/3] fix(gauge): fix z2 is negative when maxVal is negative --- src/chart/gauge/GaugeView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } From 509be2444f3963b68c9a2159e329a6688c79a248 Mon Sep 17 00:00:00 2001 From: Marco Ribeiro <41395992+ribeirompl@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:40:45 +0200 Subject: [PATCH 2/3] feat(dataZoom): change moveHandler cursor icon to move --- src/component/dataZoom/SliderZoomView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/dataZoom/SliderZoomView.ts b/src/component/dataZoom/SliderZoomView.ts index a6545fdb3e..926763325a 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: 'move', drift: bind(this._onDragMove, this, 'all'), ondragstart: bind(this._showDataInfo, this, true), ondragend: bind(this._onDragEnd, this), From 7fe6fa2670cdb35d01eda44b2c8cce6d286ed1da Mon Sep 17 00:00:00 2001 From: Marco Ribeiro <41395992+ribeirompl@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:56:54 +0200 Subject: [PATCH 3/3] feat(dataZoom): change moveHandler cursor icon to default --- src/component/dataZoom/SliderZoomView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/dataZoom/SliderZoomView.ts b/src/component/dataZoom/SliderZoomView.ts index 926763325a..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: 'move', + cursor: 'default', drift: bind(this._onDragMove, this, 'all'), ondragstart: bind(this._showDataInfo, this, true), ondragend: bind(this._onDragEnd, this),