| | |
| | | // const data = [70, 60, 50, 40, 30] |
| | | // const titlename = ['外观划伤', '表面油污', '尺寸', '颜色', '大小'] |
| | | const data = val.map(i => i.cont) |
| | | const titlename = val.map(i => i.checkitem_name) |
| | | const titlename = val.map(i => i.name) |
| | | |
| | | const valdata = [683, 500, 400, 300, 200] |
| | | const myColor = ['#FF0000', '#FF5511', '#FF8800', '#FFBB00', '#FFFF00'] |
| | | const option = { |
| | | backgroundColor: 'transparent', |
| | | title: { |
| | | text: 'Top5不良', |
| | | x: 'center', |
| | | show: false, |
| | | text: '一周内Top5不良:', |
| | | x: '2%', |
| | | y: '4%', |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: '22' |
| | | color: '#d8d7d9', |
| | | fontSize: '18' |
| | | // fontWeight: 'lighter' |
| | | }, |
| | | subtextStyle: { |
| | | color: '#90979c', |
| | |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | color: '#fff', |
| | | color: '#d8d7d9', |
| | | fontSize: 14, |
| | | formatter: function(value, index) { |
| | | return [ |
| | |
| | | rich: { |
| | | lg: { |
| | | // backgroundColor: '#339911', |
| | | color: '#fff', |
| | | color: '#d8d7d9', |
| | | borderRadius: 15, |
| | | // padding: 5, |
| | | align: 'center', |