图表组件

This commit is contained in:
yanran200730
2023-03-10 10:54:54 +08:00
parent 7c6a898bf0
commit c16559ea1e
4 changed files with 22 additions and 10 deletions

View File

@@ -22,7 +22,12 @@ export default {
},
daemon: (color) => ({
showSymbol: false,
lineStyle: { shadowBlur: 4, shadowOffsetY: 2 },
smooth: true,
lineStyle: {
shadowBlur: 4,
shadowOffsetY: 2,
width: 2
},
areaStyle: {
color: {
type: 'linear',
@@ -31,8 +36,8 @@ export default {
y: 0,
y2: 1,
colorStops: [
{ offset: 0, color: tools.$colorUtils.Hex2RGBA(color, 0.5) },
{ offset: 1, color: tools.$colorUtils.Hex2RGBA(color, 0.5) }
{ offset: 0, color: tools.$colorUtils.Hex2RGBA(color, 0.3) },
{ offset: 1, color: tools.$colorUtils.Hex2RGBA(color, 0.1) }
]
}
}