| | |
| | | var option; |
| | | |
| | | option = { |
| | | legend: { |
| | | data: ['上午出库', '上午入库', '下午出库', '下午入库'], |
| | | textStyle:{color:'#FFF'}, |
| | | lineStyle: { |
| | | width: 10, |
| | | |
| | | }, |
| | | }, |
| | | grid: { // 图表距离边框的距离,可用百分比和数字(px)配置 |
| | | top: '20%', |
| | | left: '3%', |
| | | right: '10%', |
| | | bottom: '5%', |
| | | containLabel: true |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#FFF' |
| | | } |
| | | }, |
| | | data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] |
| | | }, |
| | | yAxis: { |
| | | type: 'value' |
| | | type: 'value', |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#FFF' |
| | | } |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | data: [820, 932, 901, 934, 1290, 1330, 1320], |
| | | name: '上午出库', |
| | | type: 'line', |
| | | smooth: true |
| | | } |
| | | lineStyle: { |
| | | normal: { |
| | | width: 4 |
| | | } |
| | | }, |
| | | smooth: true, |
| | | stack: 'Total', |
| | | data: [10, 10, 10, 10, 10, 10, 10] |
| | | }, |
| | | { |
| | | name: '上午入库', |
| | | type: 'line', |
| | | lineStyle: { |
| | | normal: { |
| | | width: 4 |
| | | } |
| | | }, |
| | | smooth: true, |
| | | stack: 'Total', |
| | | data: [10, 10, 10, 10, 10, 10, 10] |
| | | }, |
| | | { |
| | | name: '下午出库', |
| | | type: 'line', |
| | | lineStyle: { |
| | | normal: { |
| | | width: 4 |
| | | } |
| | | }, |
| | | smooth: true, |
| | | stack: 'Total', |
| | | data: [10, 10, 10, 10, 10, 10, 10] |
| | | }, |
| | | { |
| | | name: '下午入库', |
| | | type: 'line', |
| | | lineStyle: { |
| | | normal: { |
| | | width: 4 |
| | | } |
| | | }, |
| | | smooth: true, |
| | | stack: 'Total', |
| | | data: [10, 1, 10, 10, 10, 10, 10] |
| | | }, |
| | | ] |
| | | }; |
| | | |