Skip to content

Commit

Permalink
color line
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Oct 10, 2023
1 parent 5a03069 commit e0e217c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/frontend/components/common/echart/ChartLineView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts" setup>
import EChartView from '@frontend/components/common/echart/EChartView.vue'
import { ColorHelper } from '@frontend/service/page/ColorHelper'
import { computed } from 'vue'
const props = defineProps({
Expand All @@ -8,6 +9,7 @@ const props = defineProps({
height: String,
name: String,
})
const color = ColorHelper.randomColor()
const opt = computed(() => {
return {
title: {
Expand Down Expand Up @@ -46,7 +48,7 @@ const opt = computed(() => {
splitLine: {
show: false,
lineStyle: {
color: 'rgba(255,255,255,0.1)',
color,
},
},
axisLine: {
Expand All @@ -70,13 +72,13 @@ const opt = computed(() => {
show: false,
},
itemStyle: {
color: '#4870DB',
color,
},
lineStyle: {
width: 1,
},
areaStyle: {
color: '#43505F',
color,
},
},
],
Expand Down

0 comments on commit e0e217c

Please sign in to comment.