diff --git a/data-room-ui/packages/G2Plots/词云图/词云图.js b/data-room-ui/packages/G2Plots/词云图/词云图.js index 54b6b162..92b15f19 100644 --- a/data-room-ui/packages/G2Plots/词云图/词云图.js +++ b/data-room-ui/packages/G2Plots/词云图/词云图.js @@ -82,7 +82,7 @@ const setting = [ value: 80, tabName: 'custom', groupName: 'graph' - } + }, // 图例 legend, // 内边距 appendPadding { diff --git a/data-room-ui/packages/G2Plots/进度图/仪表盘.js b/data-room-ui/packages/G2Plots/进度图/仪表盘.js index 39cbc56b..b5a25f60 100644 --- a/data-room-ui/packages/G2Plots/进度图/仪表盘.js +++ b/data-room-ui/packages/G2Plots/进度图/仪表盘.js @@ -171,7 +171,7 @@ const setting = [ // 对应options中的字段 optionField: 'statistic.content.offsetY', value: -30, - min:-100, + min: -100, tabName: 'custom', groupName: 'graph' }, @@ -184,10 +184,10 @@ const setting = [ // 对应options中的字段 optionField: 'statistic.title.offsetY', value: 0, - min:-100, + min: -100, tabName: 'custom', groupName: 'graph' - } + }, // 图例 legend, // 内边距 appendPadding { @@ -206,12 +206,10 @@ const data = [ } ] // 配置处理脚本 -const optionHandler ='option.range.color = [option.color1, option.color2]\n' + +const optionHandler = 'option.range.color = [option.color1, option.color2]\n' + ' let fix = option.statisticFixed\n' + ' option.statistic.title.formatter = ({ percent }) => `${(percent * 100).toFixed(fix)}%`' - - // 数据处理脚本 const dataHandler = '// 取返回数据列表的第一项指标值\noption.percent = data[0][setting.filter(settingItem=>settingItem.field === \'percent\')[0].value]' @@ -224,7 +222,7 @@ const option = { color1: 'l(0) 0:#6b74e4 1:#4391f4', color2: '#d0d0d0', range: { - color: ['l(0) 0:#6b74e4 1:#4391f4','#d0d0d0'] + color: ['l(0) 0:#6b74e4 1:#4391f4', '#d0d0d0'] }, indicator: { pointer: {