echarts属性值avoidLabelOverlap:true
会自动避免标签重叠
purchasing_quantity_option: {
title: { text: '食品采购量构成分析',subtext: '下单时间内所有订单不同类别下单数量', x: 'left', y: 'top', align: 'center' },
tooltip: {//提示框,可以在全局也可以在
trigger: 'item', //提示框的样式
formatter: '{a} <br/>{b}: {c} ({d}%)',
color: '#000', //提示框的背景色
textStyle: { //提示的字体样式
color: 'black'
}
},
legend: { //图例
orient: 'vertical', //图例的布局,竖直 horizontal为水平
x: 'right', //图例显示在右边
y: 'center', //图例显示在中间
data: [],
textStyle: { //图例文字的样式
color: '#000000', //文字颜色
fontSize: 12 //文字大小
}