option = { backgroundColor: '#0E1C47', tooltip: { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }, series: [ { name: '数据', type: 'pie', selectedMode: 'single', radius: ['10%', '25%'], label: { position: 'inner', color:'#FFF', formatter:'{b}\n{d}%', fontSize: '14' }, itemStyle: { borderWidth: 3, // 设置border宽度 borderColor: '#0E1C47', }, labelLine: { show: false }, color: ['#5AFFDF', '#FFDC44'], data: [ { value: 100, name: '进口' }, { value: 200, name: '出口' }, ] }, { name: '重空箱', type: 'pie', radius: ['25%', '40%'], label: { position: 'inner', color:'#FFF', formatter:'{b}\n{d}%', fontSize: '14' }, color: ['#5AFFDF', '#5AFFDF', '#FFDC44', '##FFDC44', '#4bddc8', '#4bddc8', '#4bddc8', '#4bddc8'], itemStyle: { borderWidth: 3, borderColor: '#0E1C47' }, data: [ { value: 40, name: '空箱' , itemStyle: { color:'#FFA881' } }, { value: 60, name: '重箱' , itemStyle:{ color:'#1692F4' } }, { value: 100, name: '空箱' , itemStyle:{ color:'#8FF9B2' }}, { value: 100, name: '重箱' , itemStyle:{ color:'#4BE0FC' }}, ] }, { name: '支干线', type: 'pie', radius: ['40%', '55%'], label: { position: 'inner', color:'#FFF', formatter:'{b}\n{d}%', fontSize: '14' }, color: [ '#FFDC44','#5AFFDF', '#5AFFDF'], itemStyle: { borderWidth: 3, borderColor: '#0E1C47' }, data: [ { value: 40, name: '空箱', label:{ formatter: '' }, itemStyle: { color:'#FFA881' } }, { value: 30, name: '干线' , itemStyle:{ color:'#21CCCE' }}, { value: 30, name: '支线', itemStyle:{ color:'#FFB130' }}, { value: 100, name: '空箱' , itemStyle:{ color:'#8FF9B2' }, label:{ formatter:'' } }, { value: 60, name: '干线' , itemStyle:{ color:'#9B8FFF' }}, { value: 40, name: '支线', itemStyle:{ color:'#304EFF' }}, ] },{ name: '国家', type: 'pie', radius: ['55%', '70%'], label: { position: 'inner', color:'#FFF', formatter:'{b}\n{d}%', fontSize: '14' }, color: [ '#FFDC44','#5AFFDF', '#5AFFDF'], itemStyle: { borderWidth: 3, borderColor: '#0E1C47' }, data: [ { value: 40, name: '空箱', label:{ borderWidth: 0, formatter: '' }, itemStyle: { color:'#FFA881' } }, { value: 10, name: '日本' , itemStyle:{ color:'#21CCCE' } }, { value: 10, name: '韩国' , itemStyle:{ color:'#21CCCE' }}, { value: 5, name: '东南亚' , itemStyle:{ color:'#21CCCE' }}, { value: 5, name: '其他', itemStyle:{ color:'#21CCCE' }}, { value: 12, name: '青岛' , itemStyle:{ color:'#FFB130' }}, { value: 12, name: '上海' , itemStyle:{ color:'#FFB130' }}, { value: 6, name: '宁波' , itemStyle:{ color:'#FFB130' }}, { value: 100, name: '空箱' , label:{ formatter:'' }, itemStyle:{ color:'#8FF9B2' }}, { value: 20, name: '日本' , itemStyle:{ color:'#9B8FFF' } }, { value: 20, name: '韩国' , itemStyle:{ color:'#9B8FFF' }}, { value: 10, name: '东南亚' , itemStyle:{ color:'#9B8FFF' }}, { value: 10, name: '其他', itemStyle:{ color:'#9B8FFF' }}, { value: 17, name: '青岛' , itemStyle:{ color:'#304EFF' }}, { value: 13, name: '上海' , itemStyle:{ color:'#304EFF' }}, { value: 10, name: '宁波' , itemStyle:{ color:'#304EFF' }}, ] } ] };