| | |
| | | |
| | | // data: ['00:00','2:00','4:00','6:00','8:00','10:00','12:00','14:00','16:00','18:00','20:00',"22:00"], |
| | | // data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], |
| | | data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月'], |
| | | data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], |
| | | // type: 'category', |
| | | // boundaryGap: true, |
| | | // axisLabel: { |
| | |
| | | ] |
| | | const color = ['26,171,234', '73,226,196', '255,221,97'] |
| | | // const xList = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] |
| | | const xList = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月'] |
| | | const xList = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] |
| | | const seriesData = [] |
| | | |
| | | list.forEach((r, i) => { |
| | |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月'] |
| | | data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] |
| | | }], |
| | | yAxis: [ |
| | | { |
| | |
| | | } |
| | | }, |
| | | // data: [393, 438, 485, 631, 689, 824, 987] |
| | | data: [600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100)] |
| | | data: [600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100), 600 + Math.floor(Math.random() * 100)] |
| | | } |
| | | // { |
| | | // name: '最新注册量', |
| | |
| | | |
| | | } |
| | | |
| | | export function zhkb03() { |
| | | export function zhkb03(title) { |
| | | const labelData = [] |
| | | const labelData1 = [] |
| | | for (let i = 0; i < 80; ++i) { |
| | |
| | | backgroundColor: 'transparent', |
| | | title: [ |
| | | { |
| | | text: '螺母投入产出率', |
| | | text: title, |
| | | x: '46%', |
| | | y: '38%', |
| | | textAlign: 'center', |
| | |
| | | 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] |
| | | [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)] |
| | | [Math.ceil(Math.random() * 100 + 100), Math.ceil(Math.random() * 100 + 200), 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 + 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], |
| | |
| | | return option |
| | | } |
| | | |
| | | export function zhkb06() { |
| | | export function zhkb06(title) { |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | | title: [ |
| | | { |
| | | text: '检验及时率', |
| | | text: title, |
| | | x: 'center', |
| | | top: '55%', |
| | | textStyle: { |
| | | color: '#FFFFFF', |
| | | fontSize: 12, |
| | | fontSize: 14, |
| | | fontWeight: 100 |
| | | } |
| | | }, |
| | | { |
| | | text: '75%', |
| | | text: '95%', |
| | | x: 'center', |
| | | top: '38%', |
| | | textStyle: { |
| | |
| | | return option |
| | | } |
| | | |
| | | export function zhkb07() { |
| | | export function zhkb07(title, value) { |
| | | const dataArr = [ |
| | | { |
| | | value: 61, |
| | | name: '我是标题' |
| | | value: value, |
| | | name: title |
| | | } |
| | | ] |
| | | const color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [ |
| | |
| | | } |
| | | ]) |
| | | const colorSet = [ |
| | | [0.61, color], |
| | | [value / 100, color], |
| | | [1, '#15337C'] |
| | | ] |
| | | const rich = { |
| | |
| | | // lineHeight:80, |
| | | borderWidth: 1, |
| | | borderColor: '#0092F2', |
| | | fontSize: 12, |
| | | fontSize: 14, |
| | | color: '#fff', |
| | | backgroundColor: '#1B215B', |
| | | borderRadius: 20, |
| | |
| | | detail: { |
| | | formatter: function(value) { |
| | | var num = Math.round(value) |
| | | return '{bule|' + num + '}{white|分}' |
| | | return '{bule|' + num + '}{white|%}' |
| | | }, |
| | | rich: rich, |
| | | offsetCenter: ['0%', '0%'] |
| | |
| | | show: true, |
| | | color: '#fff', |
| | | offsetCenter: ['0', '75%'], |
| | | fontSize: 12 |
| | | fontSize: 14 |
| | | }, |
| | | axisLine: { |
| | | show: true, |
| | |
| | | value: Math.floor(Math.random() * 10 + 90) |
| | | }, |
| | | { |
| | | name: '铸造车间', |
| | | name: '镀锌车间', |
| | | value: Math.floor(Math.random() * 10 + 90) |
| | | } |
| | | ] |
| | |
| | | |
| | | export function zhkb09() { |
| | | // 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 dataY = [(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', |
| | |
| | | // width: 3 |
| | | } |
| | | }, |
| | | data: ['一班', '二班', '三班', '四班', '五班', '六班'] |
| | | data: ['钢材改制', '冷墩', '热墩', '热处理', '达克罗', '镀锌'] |
| | | }, |
| | | series: [ |
| | | { |