图表组件

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

View File

@@ -1,8 +1,8 @@
export default { export default {
legend: { // legend: {
right: 0, itemGap: 16, // right: 0, itemGap: 16,
textStyle: {color: '#fff', padding: [0, 0, 0, 8], fontSize: 14}, // textStyle: {color: '#fff', padding: [0, 0, 0, 8], fontSize: 14},
}, // },
grid: { grid: {
left: 50, right: 0 left: 50, right: 0
}, },
@@ -11,6 +11,11 @@ export default {
textStyle: {color: '#fff'} textStyle: {color: '#fff'}
}, },
daemon: { daemon: {
lineStyle: {shadowBlur: 4, shadowOffsetY: 2}, smooth: true,
lineStyle: {
shadowBlur: 1,
shadowOffsetY: 2,
width: 2
}
} }
} }

View File

@@ -27,6 +27,7 @@ export default {
padding: 4px 0 0 22px; padding: 4px 0 0 22px;
color: #fff; color: #fff;
font-size: 22px; font-size: 22px;
font-weight: 500;
background-image: url(../asset/title6.png); background-image: url(../asset/title6.png);
background-position: bottom; background-position: bottom;
background-size: 100% 7px; background-size: 100% 7px;

View File

@@ -45,7 +45,7 @@ export default {
computed: { computed: {
colors() { colors() {
if (this.theme === '0') { if (this.theme === '0') {
return ['#00F9FF', '#EC6666', '#FC3BFF', '#1890FF', '#95FF44', '#ea7ccc'] return ['#00F9FF', '#1890FF', '#B13BFF', '#FC3BFF', '#95FF44', '#ea7ccc']
} }
return ['#D4380D', '#CF1322', '#D55800', '#FA8C16', '#FFC53D', '#FFA940', '#FFC53D', '#780000'] return ['#D4380D', '#CF1322', '#D55800', '#FA8C16', '#FFC53D', '#FFA940', '#FFC53D', '#780000']
@@ -69,7 +69,8 @@ export default {
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: this.theme === '1' ? 'rgba(239, 163, 51, 0.8)' : 'rgba(255,255,255,.5)' color: this.theme === '1' ? 'rgba(239, 163, 51, 0.8)' : 'rgba(255,255,255,.5)',
width: 1
} }
} }
}, },