From 3b43ee5ead5f625d532150afceddcf1b481b823d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 29 五月 2020 00:09:36 +0800 Subject: [PATCH] 2020-05-29 --- src/tabviews/zshare/chartcomponent/index.jsx | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/chartcomponent/index.jsx b/src/tabviews/zshare/chartcomponent/index.jsx index 672d8e0..3891a05 100644 --- a/src/tabviews/zshare/chartcomponent/index.jsx +++ b/src/tabviews/zshare/chartcomponent/index.jsx @@ -722,7 +722,7 @@ } if (plot.adjust !== 'stack') { - chart + let _chart = chart .interval() .position(`${plot.Xaxis}*${_valfield}`) .color(_typefield) @@ -733,13 +733,21 @@ } ]) .shape(plot.shape || 'rect') + + if (plot.label === 'true') { + _chart.label(_valfield) + } } else if (plot.adjust === 'stack') { - chart + let _chart = chart .interval() .position(`${plot.Xaxis}*${_valfield}`) .color(_typefield) .adjust('stack') .shape(plot.shape || 'rect') + + if (plot.label === 'true') { + _chart.label(_valfield) + } } chart.render() -- Gitblit v1.8.0