From ada653685c62e55b2d293f93470eaad59fb5cafb Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 17 四月 2021 11:32:09 +0800 Subject: [PATCH] 2021-04-17 --- src/tabviews/custom/components/chart/antv-bar-line/index.jsx | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx index 73dc126..7d31e61 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.jsx +++ b/src/tabviews/custom/components/chart/antv-bar-line/index.jsx @@ -104,11 +104,7 @@ _config.plot.height = _config.plot.height - 30 } - if (_config.style) { - _config.style = {..._config.style, minHeight: (config.plot.height || 400)} - } else { - _config.style = {minHeight: (config.plot.height || 400)} - } + _config.style.height = config.plot.height || 400 let transfield = {} _config.columns.forEach(col => { @@ -1055,6 +1051,9 @@ } }) } + if (plot.barRadius) { + _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) + } } else if (item.chartType === 'line') { let _chart = chart .line() @@ -1277,6 +1276,9 @@ if (plot.barSize || plot.correction) { _chart.size(plot.barSize || 35) } + if (plot.barRadius) { + _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) + } } else if (plot.adjust === 'stack') { let _chart = chart .interval() @@ -1320,6 +1322,9 @@ if (plot.barSize || plot.correction) { _chart.size(plot.barSize || 35) } + if (plot.barRadius) { + _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) + } } if (plot.linkmenu && plot.linkmenu.length > 0) { -- Gitblit v1.8.0