|
|
|
@ -187,7 +187,7 @@ const setting = [
|
|
|
|
|
min: -100,
|
|
|
|
|
tabName: 'custom',
|
|
|
|
|
groupName: 'graph'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 图例 legend,
|
|
|
|
|
// 内边距 appendPadding
|
|
|
|
|
{
|
|
|
|
@ -210,8 +210,6 @@ 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]'
|
|
|
|
|
|
|
|
|
|