This commit is contained in:
dinesh-zemoso 2024-05-05 02:12:47 -03:00 committed by GitHub
commit 830ffe04e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 32 additions and 1 deletions

View File

@ -22,9 +22,23 @@ import { allEventHandlers } from '../utils/eventHandlers';
import { BoxPlotChartTransformedProps } from './types';
export default function EchartsBoxPlot(props: BoxPlotChartTransformedProps) {
const { height, width, echartOptions, selectedValues, refs } = props;
const { height, width, echartOptions, selectedValues, refs, formData } =
props;
const eventHandlers = allEventHandlers(props);
if (formData.showRangeFilter) {
echartOptions.dataZoom = [
{
show: true,
type: 'slider',
left: '0rem', // Adjust the left position as needed
yAxisIndex: [0],
width: '20rem', // Adjust the width as needed
filterMode: 'filter',
labelFormatter: () => '', // Hide labels on the data zoom slider
},
];
}
return (
<Echart

View File

@ -127,6 +127,23 @@ const config: ControlPanelConfig = {
},
},
],
[
{
name: 'show_range_filter',
config: {
type: 'SelectControl',
label: t('SHOW FILTER RANGE'),
choices: [
[true, t('Yes')],
[false, t('No')],
],
default: false,
clearable: false,
renderTrigger: true,
description: t('Range slider'),
},
},
],
[
{
name: 'number_format',