产品-薪酬统计分析页面开发

This commit is contained in:
黎永顺 2023-05-16 09:00:51 +08:00
parent 6c615453f7
commit e08ba04657
1 changed files with 1 additions and 4 deletions

View File

@ -247,9 +247,6 @@ export const mapBarOptions = (params) => ({
normal: {
color: function (params) {
return colorList[params.seriesIndex] || colorList[Math.floor((Math.random() * colorList.length))];
},
lineStyle: {
color: colorList[index] || colorList[Math.floor((Math.random() * colorList.length))]
}
}
},
@ -262,7 +259,7 @@ export const mapBarOptions = (params) => ({
rotate: "90",
formatter: function (params) {
if (parseInt(params.value) === 0) {
return `${format_with_regex(params.value)} ${params.seriesName}`;
return ``;
} else {
return [
`{a|${format_with_regex(params.value)}} {b|${params.seriesName}}`