From ac53f7fea9d820fbc651be7d8e31d054d09f0787 Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Wed, 22 May 2024 13:17:49 -0400 Subject: [PATCH] feat: Data Zoom scrolls using the mouse (mark II) (#28629) --- .../src/Timeseries/transformProps.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts index e63d67f8b6..3ef468bc20 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts @@ -633,6 +633,18 @@ export default function transformProps( bottom: TIMESERIES_CONSTANTS.zoomBottom, yAxisIndex: isHorizontal ? 0 : undefined, }, + { + type: 'inside', + yAxisIndex: 0, + zoomOnMouseWheel: false, + moveOnMouseWheel: true, + }, + { + type: 'inside', + xAxisIndex: 0, + zoomOnMouseWheel: false, + moveOnMouseWheel: true, + }, ] : [], };