首页样式排版

dhy
杜函宇 1 year ago
parent 019aeeaa60
commit 833c486411

@ -87,11 +87,11 @@ export default {
trigger: "item", trigger: "item",
}, },
legend: { legend: {
width: "40%", width: "45%",
top: "25%", top: "25%",
right: "10%", right: "8%",
orient: "horizontal", orient: "horizontal",
itemGap: 27, itemGap:30,
itemWidth: 10, itemWidth: 10,
itemHeight: 10, itemHeight: 10,
icon: "circle", icon: "circle",
@ -99,20 +99,21 @@ export default {
rich: { rich: {
a: { a: {
color: "#525966", color: "#525966",
width: 40, width: 60,
padding: [0, 10, 0, 5], padding: [0, 0, 0, 5],
}, },
b: { b: {
color: "#495B7D", color: "#495B7D",
fontWeight: "bold", fontWeight: "bold",
padding: [0, 0, 0, 10], // width: 60,
// padding: [0, 0, 0, 10],
}, },
}, },
}, },
formatter: function (name) { formatter: function (name) {
const item = option.legend.data.find((item) => item.name === name); const item = option.legend.data.find((item) => item.name === name);
// return `{a|${name}}{b|${( item.value / arrA * 100)}%}`; // return `{a|${name}}{b|${( item.value / arrA * 100)}%}`;
return `{a|${name}}{b|${item.pt * 100}%}`; return `{a|${name}}{b|${(item.pt * 100).toFixed(2)}%}`;
}, },
//waiyuan, //waiyuan,
// data: [ // data: [

Loading…
Cancel
Save