大屏组件

This commit is contained in:
yanran200730
2023-03-15 11:18:12 +08:00
parent 00d90dc8b7
commit f053a06231

View File

@@ -12,20 +12,14 @@ export default {
type: 'bar', label: {show: true, position: 'insideBottom', color: '#fff'}, type: 'bar', label: {show: true, position: 'insideBottom', color: '#fff'},
barWidth: 24, barWidth: 24,
showBackground: true, showBackground: true,
backgroundStyle: { // backgroundStyle: {
color: 'rgba(123, 165, 255, .2)' // color: 'rgba(123, 165, 255, .2)'
}, // },
itemStyle: {
color: {
type: 'linear', x: 0, x2: 0, y: 0, y2: 1,
colorStops: [{offset: 0, color: '#42BBFF'}, {offset: 1, color: 'rgba(37, 143, 255, 0.2)'}]
}
},
emphasis: { emphasis: {
itemStyle: { itemStyle: {
color: { color: {
type: 'linear', x: 0, x2: 0, y: 0, y2: 1, type: 'linear', x: 0, x2: 0, y: 0, y2: 1,
colorStops: [{offset: 0, color: '#42FFFE'}, {offset: 1, color: 'rgba(37, 255, 246, 0.2)'}] // colorStops: [{offset: 0, color: '#42FFFE'}, {offset: 1, color: 'rgba(37, 255, 246, 0.2)'}]
} }
} }
} }