This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-04-30 16:22:15 +08:00
parent ea63cb5730
commit fdf71145e8
5 changed files with 291 additions and 50 deletions

View File

@@ -15,7 +15,11 @@ export default function ({
top: 0,
containLabel: true,
},
tooltip: {},
tooltip: {
// formatter(params) {
// return `${params.name}: ${(params.value * 100).toFixed(0)}%`;
// }
},
title: {
text: titleValue,
left: "49%",
@@ -60,7 +64,7 @@ export default function ({
data: [
{
value: currentSum,
name: "当前累计产出",
name: "当前良率",
selected: false,
itemStyle: {
borderJoin: "round",
@@ -93,9 +97,9 @@ export default function ({
? currentSum == 0
? 1
: 0
: 0,
: targetSum,
name: "未达成累计",
name: "未达成",
itemStyle: { color: "transparent" },
label: { show: false },
},
@@ -118,7 +122,7 @@ export default function ({
data: [
{
value: previousSum,
name: "上期累计产出",
name: "上期良率",
selected: false,
itemStyle: {
borderJoin: "round",
@@ -146,6 +150,9 @@ export default function ({
? 1
: 0,
name: "-",
formatter: {
show: false
},
itemStyle: { color: "transparent" },
label: { show: false },
},