Skip to content

Commit ac53f7f

Browse files
authored
feat: Data Zoom scrolls using the mouse (mark II) (apache#28629)
1 parent 4fa7619 commit ac53f7f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,18 @@ export default function transformProps(
633633
bottom: TIMESERIES_CONSTANTS.zoomBottom,
634634
yAxisIndex: isHorizontal ? 0 : undefined,
635635
},
636+
{
637+
type: 'inside',
638+
yAxisIndex: 0,
639+
zoomOnMouseWheel: false,
640+
moveOnMouseWheel: true,
641+
},
642+
{
643+
type: 'inside',
644+
xAxisIndex: 0,
645+
zoomOnMouseWheel: false,
646+
moveOnMouseWheel: true,
647+
},
636648
]
637649
: [],
638650
};

0 commit comments

Comments
 (0)