Files
dvcp_v2_webapp/components/AiEchart/template/line/lineChart5.js

32 lines
864 B
JavaScript
Raw Normal View History

2022-03-25 11:09:26 +08:00
import tools from "../tools";
export default {
legend: {show: false},
grid: {
2024-02-07 14:23:53 +08:00
left: 50, right: 0, top: 10, bottom: 30
2022-03-25 11:09:26 +08:00
},
tooltip: {
trigger: 'axis', backgroundColor: 'rgba(14, 51, 111, 0.9)', borderColor: '#1A6ABC',
textStyle: {color: '#fff'},
axisPointer: {type: 'cross'}
},
yAxis: {
nameGap: 23, minInterval: 1,
splitLine: {lineStyle: {color: 'rgba(255,255,255,.2)', type: 'dashed'}},
axisLabel: {color: '#fff'},
axisPointer: {snap: true}
},
2024-02-07 14:23:53 +08:00
daemon: color => ({
2022-03-25 11:09:26 +08:00
showSymbol: false, smooth: true,
lineStyle: {shadowBlur: 4, shadowOffsetY: 2},
areaStyle: {
color: {
type: 'linear', x: 0, x2: 0, y: 0, y2: 1, colorStops: [
{offset: 0, color: tools.$colorUtils.Hex2RGBA(color, .5)},
{offset: 1, color: tools.$colorUtils.Hex2RGBA(color, 0)},
]
}
}
})
}