diff --git a/ui/src/components/app-charts/components/BarCharts.vue b/ui/src/components/app-charts/components/BarCharts.vue index 821c9f1a7..3e31ee442 100644 --- a/ui/src/components/app-charts/components/BarCharts.vue +++ b/ui/src/components/app-charts/components/BarCharts.vue @@ -94,6 +94,16 @@ function initChart() { }, }, }, + dataZoom: [ + { + type: 'inside', + show: props.option.dataZoom, + }, + { + type: 'slider', + show: props.option.dataZoom, + }, + ], series: series, } @@ -117,6 +127,7 @@ watch( ) onMounted(() => { + console.log(props.option.dataZoom) nextTick(() => { initChart() window.addEventListener('resize', changeChartSize) diff --git a/ui/src/components/layout-container/index.vue b/ui/src/components/layout-container/index.vue index 8a791b96e..71dab3038 100644 --- a/ui/src/components/layout-container/index.vue +++ b/ui/src/components/layout-container/index.vue @@ -3,6 +3,7 @@