You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2024/05/21 18:34:35 UTC

(superset) branch patch-zoom created (now c70d77c804)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch patch-zoom
in repository https://gitbox.apache.org/repos/asf/superset.git


      at c70d77c804 patching this to maser

This branch includes the following new commits:

     new c70d77c804 patching this to maser

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: patching this to maser

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch patch-zoom
in repository https://gitbox.apache.org/repos/asf/superset.git

commit c70d77c804f7b19ec14e7618e853d436d9428470
Author: Hugh A. Miles II <hu...@gmail.com>
AuthorDate: Tue May 21 18:34:25 2024 +0000

    patching this to maser
---
 .../plugin-chart-echarts/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,
+          },
         ]
       : [],
   };