// 饼图 export default function pieOption(color = [], data = [], ) { return { tooltip: { trigger: 'item' }, // 注释字体样式 legend: { orient: 'vertical', top: 16, left: 170, itemWidth: 10, //data图标大小 itemHeight: 10, itemGap: 50, //图标之间间距 // z:-1 }, // 环形统计图样式 series: [{ // bottom:68, // right:6, // name: name, type: 'pie', radius: ['66', '40'], avoidLabelOverlap: false, itemStyle: { // borderRadius: 10, borderColor: '#fff', borderWidth: 2 }, // 点击弹出提示位置 label: { show: false, position: 'center' }, color: color, //点击弹出提示样式 emphasis: { label: { show: true, fontSize: '40', fontWeight: 'bold' } }, labelLine: { show: false }, // 环形数据 data: data }] } }