This commit is contained in:
duanxiaohai 2024-07-08 09:32:35 +08:00
parent b8e3dcdbff
commit 817880090e
1 changed files with 5 additions and 4 deletions

View File

@ -144,7 +144,7 @@ const getOption = () => {
color: "#ffffff",
position: "top",
formatter: function (data) {
return (data.value / 10000).toFixed(0) + "万";
return data.value + "万";
},
},
// itemStyle: {
@ -201,7 +201,7 @@ const getOption = () => {
color: "#ffffff",
position: "top",
formatter: function (data) {
return (data.value / 10000).toFixed(0) + "万";
return data.value + "万";
},
},
// itemStyle: {
@ -258,10 +258,11 @@ onBeforeMount(() => {
data.list = props.list;
data.year = props.year;
data.list.forEach((item) => {
data.zgffrc.push(item.zgffrc);
data.cxffrc.push(item.cxffrc);
data.zgffrc.push((item.zgffrc / 10000).toFixed(0));
data.cxffrc.push((item.cxffrc / 10000).toFixed(0));
data.bg.push("");
});
console.log(data.zgffrc,data.cxffrc);
getOption();
setChart();
}, 600);