From f85db005e1732f7f31055a3262703d00ecffe769 Mon Sep 17 00:00:00 2001 From: junjie Date: Thu, 22 Jul 2021 15:00:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9D=90=E6=A0=87=E8=BD=B4?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=BB=9A=E8=BD=AE=E7=BC=A9=E6=94=BE=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/chart.js | 78 ++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index 0ee2ce820c..031d2007d2 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -205,7 +205,31 @@ export const BASE_BAR = { series: [], dataZoom: [ { - type: 'inside' + type: 'slider', + show: false, + xAxisIndex: [0], + start: 1, + end: 100 + }, + { + type: 'slider', + show: false, + yAxisIndex: [0], + left: '93%', + start: 1, + end: 100 + }, + { + type: 'inside', + xAxisIndex: [0], + start: 1, + end: 100 + }, + { + type: 'inside', + yAxisIndex: [0], + start: 1, + end: 100 } ] } @@ -237,7 +261,31 @@ export const HORIZONTAL_BAR = { series: [], dataZoom: [ { - type: 'inside' + type: 'slider', + show: false, + xAxisIndex: [0], + start: 1, + end: 100 + }, + { + type: 'slider', + show: false, + yAxisIndex: [0], + left: '93%', + start: 1, + end: 100 + }, + { + type: 'inside', + xAxisIndex: [0], + start: 1, + end: 100 + }, + { + type: 'inside', + yAxisIndex: [0], + start: 1, + end: 100 } ] } @@ -271,7 +319,31 @@ export const BASE_LINE = { series: [], dataZoom: [ { - type: 'inside' + type: 'slider', + show: false, + xAxisIndex: [0], + start: 1, + end: 100 + }, + { + type: 'slider', + show: false, + yAxisIndex: [0], + left: '93%', + start: 1, + end: 100 + }, + { + type: 'inside', + xAxisIndex: [0], + start: 1, + end: 100 + }, + { + type: 'inside', + yAxisIndex: [0], + start: 1, + end: 100 } ] }