mirror of
https://github.com/apache/superset.git
synced 2026-05-31 21:29:19 +00:00
feat(BoxPlot): add chart data zoom (#35097)
This commit is contained in:
@@ -158,6 +158,7 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
},
|
||||
],
|
||||
['zoomable'],
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user