配置项如下
option = {
title: {
text: 'CRM产品四月开发进度',
left: 'center'
},
legend: {
bottom: 'bottom',
data: ['董、吴', '胡、张、李', '焦、宾']
},
xAxis: {
name: '日期',
data: ['5', '6', '7',
'10', '11', '12', '13', '14',
'17', '18', '19', '20', '21',
'24', '25', '26', '27', '28']
},
yAxis: {
name: '进度%',
type: 'value',
data: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
},
grid: {
left: '3%',
right: '8%',
top: '10%',
bottom: '10%',
containLabel: true
},
series: [{
name: '计划',
type: 'line',
lineStyle: {
normal: {
color: 'rgba(128, 128, 128, 0.5)'
}
},
showSymbol: false,
data: [100/18, 100/18*2, 100/18*3,
100/18*4, 100/18*5, 100/18*6, 100/18*7, 100/18*8,
100/18*9, 100/18*10, 100/18*11, 100/18*12, 100/18*13,
100/18*14, 100/18*15, 100/18*16, 100/18*17, 100]
},{
name: '董、吴',
type: 'line',
data: [100/18*0.6, 100/18*3]
},{
name: '胡、张、李',
type: 'line',
data: [100/18*1.5, 100/18*3]
},{
name: '焦、宾',
type: 'line',
data: [100/18, 100/18*2]
}]
};