92 lines
1.8 KiB
JavaScript
92 lines
1.8 KiB
JavaScript
export default {
|
|
legend: {
|
|
right: 0,
|
|
itemHeight: 5,
|
|
itemWidth: 16,
|
|
textStyle: { color: '#fff' }
|
|
},
|
|
yAxis: {
|
|
nameGap: 23,
|
|
minInterval: 1,
|
|
splitLine: { lineStyle: { color: 'rgba(255,255,255,.2)', type: 'dashed' } },
|
|
axisLabel: { color: '#fff' },
|
|
axisPointer: { show: false }
|
|
},
|
|
axisPointer: {
|
|
type: 'shadow',
|
|
triggerTooltip: false,
|
|
shadowStyle: { color: 'rgba(46, 153, 255, .2)' }
|
|
},
|
|
color: [
|
|
{
|
|
type: 'linear',
|
|
x: 0,
|
|
x2: 0,
|
|
y: 0,
|
|
y2: 1,
|
|
colorStops: [
|
|
{ offset: 0, color: 'rgba(66, 187, 255, 1)' },
|
|
{ offset: 1, color: 'rgba(37, 143, 255, 0.2)' }
|
|
]
|
|
},
|
|
{
|
|
type: 'linear',
|
|
x: 0,
|
|
x2: 0,
|
|
y: 0,
|
|
y2: 1,
|
|
colorStops: [
|
|
{ offset: 0, color: 'rgba(66, 255, 254, 1)' },
|
|
{ offset: 1, color: 'rgba(37, 255, 246, 0.2)' }
|
|
]
|
|
},
|
|
{
|
|
type: 'linear',
|
|
x: 0,
|
|
x2: 0,
|
|
y: 0,
|
|
y2: 1,
|
|
colorStops: [
|
|
{ offset: 0, color: 'rgba(97, 253, 185, 1)' },
|
|
{ offset: 1, color: 'rgba(97, 253, 185, 0.2)' }
|
|
]
|
|
},
|
|
{
|
|
type: 'linear',
|
|
x: 0,
|
|
x2: 0,
|
|
y: 0,
|
|
y2: 1,
|
|
colorStops: [
|
|
{ offset: 0, color: 'rgba(253, 108, 57, 1)' },
|
|
{ offset: 1, color: 'rgba(253, 108, 57, 0.2)' }
|
|
]
|
|
},
|
|
{
|
|
type: 'linear',
|
|
x: 0,
|
|
x2: 0,
|
|
y: 0,
|
|
y2: 1,
|
|
colorStops: [
|
|
{ offset: 0, color: 'rgba(248, 187, 25, 1)' },
|
|
{ offset: 1, color: 'rgba(55, 39, 5, 1)' }
|
|
]
|
|
}
|
|
],
|
|
daemon: {
|
|
type: 'bar',
|
|
label: {
|
|
show: true,
|
|
position: 'top',
|
|
color: '#fff',
|
|
formatter: e => {
|
|
return e.data[e.seriesName] || ''
|
|
}
|
|
},
|
|
barWidth: 16,
|
|
barCategoryGap: 40,
|
|
itemStyle: {}
|
|
}
|
|
}
|