feat(BoxPlot): add chart data zoom (#35097)

This commit is contained in:
SBIN2010
2025-09-11 21:29:02 +03:00
committed by GitHub
parent b42060c880
commit 454ed1883f
3 changed files with 30 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ const config: ControlPanelConfig = {
},
},
],
['zoomable'],
],
},
],

View File

@@ -73,6 +73,7 @@ export default function transformProps(
yAxisTitleMargin,
yAxisTitlePosition,
sliceId,
zoomable,
} = formData as BoxPlotQueryFormData;
const refs: Refs = {};
const colorFn = CategoricalColorNamespace.getScale(colorScheme as string);
@@ -284,6 +285,26 @@ export default function transformProps(
},
},
series,
toolbox: {
show: zoomable,
feature: {
dataZoom: {
title: {
zoom: 'zoom area',
back: 'restore zoom',
},
},
},
},
dataZoom: zoomable
? [
{
type: 'inside',
zoomOnMouseWheel: false,
moveOnMouseWheel: true,
},
]
: [],
};
return {