This commit is contained in:
姚宇浩 2024-06-14 11:58:03 +08:00
parent 2fde8401e9
commit 00b1554bc5
1 changed files with 23 additions and 4 deletions

View File

@ -194,7 +194,15 @@ const option = {
xAxis: [ xAxis: [
{ {
type: "category", type: "category",
data: ["小奔通", "两慢病", "水费", "就业招工", "零工市厂匹配", "医保", "交通出行"], data: [
"小奔通",
"两慢病",
"水费",
"就业招工",
"零工市厂匹配",
"医保",
"交通出行",
],
axisLine: { axisLine: {
show: false, show: false,
}, },
@ -207,11 +215,22 @@ const option = {
show: true, show: true,
color: "#fff", color: "#fff",
fontSize: 16, fontSize: 16,
formatter: function (value) {
return value.length > 2 ? value.slice(0, 2) + "..." : value;
},
}, },
}, },
{ {
type: "category", type: "category",
data: ["小奔通", "两慢病", "水费", "就业招工", "零工市厂匹配", "医保", "交通出行"], data: [
"小奔通",
"两慢病",
"水费",
"就业招工",
"零工市厂匹配",
"医保",
"交通出行",
],
axisLine: { axisLine: {
show: false, show: false,
}, },
@ -419,7 +438,7 @@ const option = {
xAxisIndex: 1, xAxisIndex: 1,
label: { label: {
show: true, show: true,
fontSize:18, fontSize: 18,
position: "top", position: "top",
color: "#ffffff", color: "#ffffff",
formatter: function (data) { formatter: function (data) {
@ -430,7 +449,7 @@ const option = {
color: "rgba(221, 242, 255, 0)", color: "rgba(221, 242, 255, 0)",
}, },
data: valueList.map((item) => item+5), data: valueList.map((item) => item + 5),
barWidth: 20, barWidth: 20,
}, },
], ],