| | |
| | | graphic: { |
| | | type: 'text', |
| | | left: '22%', |
| | | top: '35%', |
| | | top: '48%', |
| | | style: { |
| | | text: '设备类型', |
| | | fill: '#FFFFFF', |
| | |
| | | color: '#FFFFFF', |
| | | fontSize: 12, |
| | | rich: legendRich, |
| | | lineHeight: 30 |
| | | }, |
| | | itemWidth: 8, |
| | | itemHeight: 8, |
| | |
| | | }, |
| | | title: { |
| | | x: 'center', |
| | | top: '20', |
| | | top: 0, |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: 22, |
| | |
| | | show: false, |
| | | boxHeight: 26, |
| | | left: '0%', |
| | | top: -20, |
| | | top: '-2%', |
| | | width: '60%', |
| | | viewControl: { |
| | | distance: 210, |
| | |
| | | top: 15, |
| | | left: 10, |
| | | right: 10, |
| | | bottom: 10, |
| | | bottom: 0, |
| | | containLabel: true, |
| | | }, |
| | | tooltip: { |
| | |
| | | top: 15, |
| | | left: 10, |
| | | right: 10, |
| | | bottom: 10, |
| | | bottom: 0, |
| | | containLabel: true, |
| | | }, |
| | | tooltip: { |
| | |
| | | color: '#FFFFFF', |
| | | fontSize: 12, |
| | | interval: 0, |
| | | rotate: 25, |
| | | margin: 8, |
| | | formatter: value => { |
| | | if (value == null) return '' |
| | | const text = String(value) |
| | | return text.length > 4 ? `${text.slice(0, 4)}...` : text |
| | | }, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: 'value', |
| | | min: 1, |
| | | minInterval: 1, |
| | | axisLabel: { |
| | | color: '#FFFFFF', |
| | | fontSize: 12, |
| | |
| | | symbolRepeat: 'fixed', |
| | | symbolMargin: 3, |
| | | symbol: 'rect', |
| | | symbolClip: false, |
| | | symbolClip: true, |
| | | symbolPosition: 'end', |
| | | clip: true, |
| | | symbolSize: [10, 3], |
| | | data: values, |
| | | z: 2, |