Files
dvcp_v2_webapp/components/AiEchart/template/bar/barChart1.js
yanran200730 cef67555bf 图表组件
2023-03-09 18:01:23 +08:00

78 lines
1.5 KiB
JavaScript

export default {
yAxis: {
nameGap: 23,
minInterval: 1,
splitLine: { lineStyle: { color: 'rgba(255,255,255,.2)', type: 'dashed' } },
axisLabel: { color: '#C3C4C4' },
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(0, 249, 255, 1)' },
{ offset: 1, color: 'rgba(0, 249, 255, 0.4)' }
]
},
{
type: 'linear',
x: 0,
x2: 0,
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(236, 102, 102, 1)' },
{ offset: 1, color: 'rgba(236, 102, 102, 0.4)' }
]
},
{
type: 'linear',
x: 0,
x2: 0,
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(252, 59, 255, 1)' },
{ offset: 1, color: 'rgba(252, 59, 255, 0.4)' }
]
},
{
type: 'linear',
x: 0,
x2: 0,
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(24, 144, 255, 1)' },
{ offset: 1, color: 'rgba(24, 144, 255, 0.4)' }
]
},
{
type: 'linear',
x: 0,
x2: 0,
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: 'rgba(149, 255, 68, 1)' },
{ offset: 1, color: 'rgba(149, 255, 68, 0.4)' }
]
}
],
daemon: {
type: 'bar',
barWidth: 20,
barCategoryGap: 40,
itemStyle: {}
}
}