From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/templates/sharecomponent/chartcomponent/index.jsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/chartcomponent/index.jsx b/src/templates/sharecomponent/chartcomponent/index.jsx index c9b6726..8c356fb 100644 --- a/src/templates/sharecomponent/chartcomponent/index.jsx +++ b/src/templates/sharecomponent/chartcomponent/index.jsx @@ -17,7 +17,7 @@ } state = { - dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, + dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, visible: true } @@ -420,6 +420,9 @@ if (plot.label === 'true') { _chart.label('value') } + if (plot.barSize || plot.correction) { + _chart.size(plot.barSize || 35) + } } else if (plot.adjust === 'stack') { let _chart = chart .interval() @@ -431,6 +434,10 @@ if (plot.label === 'true') { _chart.label('value') } + + if (plot.barSize || plot.correction) { + _chart.size(plot.barSize || 35) + } } chart.render() -- Gitblit v1.8.0