解决echarts中饼图标签重叠的问题
饼图中的ries有个avoidLabelOverlap属性,
avoidLabelOverlap:是否启⽤防⽌标签重叠策略,默认开启,在标签拥挤重叠的情况下会挪动各个标签的位置,防⽌标签间的重叠。当avoidLabelOverlap设置为fal时会出现以下情况
改为true之后就不会重叠
var option = {
tooltip: {
aheadtrigger: "item",
英文名字的含义
formatter: "{a}
nationalbank{b} : {c} ({d}%)"
},
legend: {
//orient: "vertical",
x: "0%",
//y: "25%",
//y: "5%",
itemWidth: 14,
itemHeight: 14,
中国老人tueoldanalign: "left",
data: xData,
textStyle: {
color: "#fff"
}
},
ries: [
{
name: "危险源状态",
type: "pie",
radius: ["25%", "45%"],
center: ["50%", "60%"],中文名字用英文怎么写
avoidLabelOverlap: true,//对,就是这⾥avoidLabelOverlap
dramaticallylabel: {
databusnormal: {手机词典
show: true,
position: "center"
logic},
emphasis: {
o holy nightshow: true,
textStyle: {
fontSize: "12",