| | |
| | | export function zhkb01() { |
| | | // const zhkb01name = ['计划完成进度(自产)', '计划完成进度(外购)'] // 名称 |
| | | const zhkb01name = ['', ''] // 名称 |
| | | const zhkb01Value = [88, 95] // 值 |
| | | const zhkb01Value = [Math.ceil(Math.random() * 10 + 90), Math.ceil(Math.random() * 10 + 90)] // 值 |
| | | const zhkb01Max = [] |
| | | |
| | | const max = Math.ceil(Math.max(...zhkb01Value.map(r => r)) * 1.1) |
| | |
| | | |
| | | export function zhkb04() { |
| | | const myColor = ['#d0a00e', '#34da62', '#00e9db', '#00c0e9', '#0096f3'] |
| | | // const data = [330, 404, 780, 509, 150] |
| | | const data = [Math.ceil(Math.random() * 100 + 500), Math.ceil(Math.random() * 100 + 600), Math.ceil(Math.random() * 100 + 700), Math.ceil(Math.random() * 400 + 500), Math.ceil(Math.random() * 100 + 200)] |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | | grid: { |
| | |
| | | fontSize: 16 |
| | | } |
| | | }, |
| | | data: ['12566', '12566', '12566', '12566', '12566'] |
| | | |
| | | data: data |
| | | }, |
| | | { |
| | | show: false, |
| | |
| | | name: '条', |
| | | type: 'bar', |
| | | yAxisIndex: 0, |
| | | data: [33, 44, 78, 59, 15], |
| | | data: data.map(r => r / 10), |
| | | label: { |
| | | normal: { |
| | | show: false, |
| | |
| | | } |
| | | }, |
| | | z: 2 |
| | | }] |
| | | } |
| | | ] |
| | | } |
| | | |
| | | return option |
| | |
| | | // var XName = ['周一', '周二', '周三', '周四', '周五', '周六', '周日'] |
| | | var XName = ['01月', '02月', '03月', '04月', '05月', '06月', '07月', '08月', '09月', '10月', '11月', '12月'] |
| | | var data1 = [ |
| | | [123, 121, 123, 321, 222, 111, 234, 121, 123, 321, 222, 321] |
| | | // [123, 121, 123, 321, 222, 111, 234, 121, 123, 321, 222, 321] |
| | | [Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300), Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), Math.ceil(Math.random() * 100 + 300)] |
| | | // [123, 154, 234, 321, 120, 390, 634], |
| | | // [63, 194, 234, 321, 278, 110, 534], |
| | | // [53, 254, 234, 321, 118, 240, 434], |
| | |
| | | x: 'center', |
| | | top: '38%', |
| | | textStyle: { |
| | | fontSize: 12, |
| | | fontSize: 14, |
| | | color: '#FFFFFF', |
| | | fontFamily: 'DINAlternate-Bold, DINAlternate', |
| | | foontWeight: 100 |
| | |
| | | ] |
| | | const rich = { |
| | | white: { |
| | | fontSize: 12, |
| | | fontSize: 14, |
| | | color: '#fff', |
| | | fontWeight: '500' |
| | | }, |
| | | bule: { |
| | | fontSize: 12, |
| | | fontSize: 14, |
| | | fontFamily: 'DINBold', |
| | | color: '#fff', |
| | | fontWeight: 100 |
| | |
| | | } |
| | | |
| | | export function zhkb09() { |
| | | const dataY = [60, 70, 80, 90, 60, 70, 80, 90, 80, 90, 60, 70, 80, 90] |
| | | // const dataY = [60, 70, 80, 90, 60, 70, 80, 90, 80, 90, 60, 70, 80, 90] |
| | | const dataY = [(60 + Math.random() * 30), (70 + Math.random() * 20), (80 + Math.random() * 10), (90 - Math.random() * 30), (60 + Math.random() * 30), (70 + Math.random() * 20), (80 + Math.random() * 10), (90 - Math.random() * 30), (80 - Math.random() * 30), (90 - Math.random() * 30), (60 + Math.random() * 30), (70 + Math.random() * 20), (80 - Math.random() * 10), (90 - Math.random() * 30)] |
| | | |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | |
| | | const _legendColor = '#8FD8FF' |
| | | const _fontSize = 16 |
| | | const _fontColor = '#8FD8FF' |
| | | const data1 = [70, 90, 100, 70, 90, 100] |
| | | const data2 = [80, 60, 80, 50, 90, 60] |
| | | // const data1 = [70, 90, 100, 70, 90, 100] |
| | | // const data2 = [80, 60, 80, 50, 90, 60] |
| | | const data1 = [70 + Math.random() * 20, 90 - Math.random() * 20, 100 - Math.random() * 20, 70 + Math.random() * 20, 90 - Math.random() * 20, 80 - Math.random() * 20] |
| | | const data2 = [80 + Math.random() * 20, 60 + Math.random() * 20, 80 - Math.random() * 20, 50 + Math.random() * 20, 90 - Math.random() * 20, 60 + Math.random() * 20] |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | | legend: { |
| | |
| | | containLabel: true |
| | | }, |
| | | yAxis: { |
| | | max: Math.ceil(Math.max(...data1) * 1.2), |
| | | // max: Math.ceil(Math.max(...data1) * 1.2), |
| | | max: 100, |
| | | type: 'value', |
| | | position: 'left', |
| | | axisLine: { |
| | |
| | | name: '设备利用率', |
| | | type: 'bar', |
| | | barGap: '70%', |
| | | data: [30, 75, 77, 39, 85], |
| | | data: [Math.ceil(30 + Math.random() * 20), Math.ceil(75 - Math.random() * 20), Math.ceil(77 - Math.random() * 20), Math.ceil(39 + Math.random() * 20), Math.ceil(85 - Math.random() * 20)], |
| | | barWidth: 12, |
| | | itemStyle: { |
| | | normal: { |
| | |
| | | { |
| | | name: '设备开机率', |
| | | type: 'bar', |
| | | data: [90, 45, 27, 20, 85], |
| | | data: [Math.ceil(90 - Math.random() * 20), 45 + Math.ceil(Math.random() * 20), Math.ceil(27 + Math.random() * 20), Math.ceil(20 + Math.random() * 60), Math.ceil(85 - Math.random() * 20)], |
| | | barWidth: 12, |
| | | itemStyle: { |
| | | normal: { |