This commit is contained in:
parent
b8e3dcdbff
commit
817880090e
|
@ -144,7 +144,7 @@ const getOption = () => {
|
||||||
color: "#ffffff",
|
color: "#ffffff",
|
||||||
position: "top",
|
position: "top",
|
||||||
formatter: function (data) {
|
formatter: function (data) {
|
||||||
return (data.value / 10000).toFixed(0) + "万";
|
return data.value + "万";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// itemStyle: {
|
// itemStyle: {
|
||||||
|
@ -201,7 +201,7 @@ const getOption = () => {
|
||||||
color: "#ffffff",
|
color: "#ffffff",
|
||||||
position: "top",
|
position: "top",
|
||||||
formatter: function (data) {
|
formatter: function (data) {
|
||||||
return (data.value / 10000).toFixed(0) + "万";
|
return data.value + "万";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// itemStyle: {
|
// itemStyle: {
|
||||||
|
@ -258,10 +258,11 @@ onBeforeMount(() => {
|
||||||
data.list = props.list;
|
data.list = props.list;
|
||||||
data.year = props.year;
|
data.year = props.year;
|
||||||
data.list.forEach((item) => {
|
data.list.forEach((item) => {
|
||||||
data.zgffrc.push(item.zgffrc);
|
data.zgffrc.push((item.zgffrc / 10000).toFixed(0));
|
||||||
data.cxffrc.push(item.cxffrc);
|
data.cxffrc.push((item.cxffrc / 10000).toFixed(0));
|
||||||
data.bg.push("");
|
data.bg.push("");
|
||||||
});
|
});
|
||||||
|
console.log(data.zgffrc,data.cxffrc);
|
||||||
getOption();
|
getOption();
|
||||||
setChart();
|
setChart();
|
||||||
}, 600);
|
}, 600);
|
||||||
|
|
Loading…
Reference in New Issue