2023年4月19日发(作者:三年级数学手抄报内容)echarts--饼图引导线的设置
riesData: [
{
name: "进站乘客统计",
type: "pie",
radius: [0, 70],
center: ["25%", "40%"],
itemStyle: {
normal: {
label: {
show: true,
position: "outside",
// color: "#ddd",
formatter: function (params) {
("params", params);
var percent = 0;
var total = 0;
for (v西洋参起什么作用
ar i = 0; i < ; i++) {
total += Number(res[i].stationInFlow)英文散文
;
}
percent = (( / total) * 100).toFixed(0);
percent = percent == "NaN" ? 0 : percent;
("percent", percent, total);
if ( !== "") {
return (
"数量:" +
+
"n" +学生会主席发言稿
"n" +
"占百分⽐:" +
percent +
"%"
);
} el {
return "";
相反的成语
}
},
},
// labelLine: {
// // length: 30,
// // length2: 100,
// show: true,
// // color: "#00ffff",
// },
},
},
// la无线图标
bel: {
// show: true,
// },
color: ["#0e79bf", "#678ffb", "#6bbbf5", "#a36ef3", "#63c1cf人民解放战争
"],
data: ((item) => {
// return Count;
return { value: nInFlow, name: nName };
}),
},
{
name: "出站乘客统计",
type: "pie",
radius: [0, 70],
center: ["75%", "40%"],
// roType: 'area',
关于环保的宣传语
label: {
show: true,
},
itemStyle: {
男同性恋小说
郑洞国简介
normal: {
label: {
show: true,
position: "outside",
// color: "#ddd",
formatter: function (params) {
("params", params);
var percent = 0;
var total = 0;
演员的英文
for (var i = 0; i < ; i++) {
total += Number(res[i].stationOutFlow);
}
percent = (( / total) * 100).toFixed(0);
percent = percent == "NaN" ? 0 : percent;
("percent", percent, total);
if ( !== "") {
return (
"数量:" +
+
"n" +
"n" +
"占百分⽐:" +
percent +
"%"
);
} el {
return "";
}
},
},
// labelLine: {
// // length: 30,
// // length2: 100,
// show: true,
// // color: "#00ffff",
// },
},
},
data: ((item) => {
// { value: 10, name: 'ro1' },
return { value: nOutFlow, name: nName };
}),
},
],
渲染出来的样式