style: 图表去掉警告

This commit is contained in:
CaptainB 2021-10-27 12:19:01 +08:00 committed by 刘瑞斌
parent a74e9adcbc
commit 7194bef971
8 changed files with 37 additions and 75 deletions

View File

@ -195,11 +195,9 @@
avoidLabelOverlap: false, avoidLabelOverlap: false,
hoverAnimation: false, hoverAnimation: false,
itemStyle: { itemStyle: {
normal: { borderColor: "#FFF",
borderColor: "#FFF", shadowColor: '#E1E1E1',
shadowColor: '#E1E1E1', shadowBlur: 10
shadowBlur: 10
}
}, },
labelLine: { labelLine: {
show: false show: false

View File

@ -133,11 +133,9 @@ export default {
avoidLabelOverlap: false, avoidLabelOverlap: false,
hoverAnimation: false, hoverAnimation: false,
itemStyle: { itemStyle: {
normal: { borderColor: "#FFF",
borderColor: "#FFF", shadowColor: '#E1E1E1',
shadowColor: '#E1E1E1', shadowBlur: 10
shadowBlur: 10
}
}, },
labelLine: { labelLine: {
show: false show: false

View File

@ -48,12 +48,9 @@ export default {
data: this.data, data: this.data,
animation: false, animation: false,
label: { label: {
normal: { show: true,
show: true, position: 'outside',
position: 'outside', formatter: '{b}:{c}'
formatter: '{b}:{c}'
}
} }
} }
] ]

View File

@ -93,17 +93,12 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
lineStyle: { lineStyle: {
normal: { width: 1
width: 1
}
}, },
itemStyle: { itemStyle: {
normal: { color: 'rgb(137,189,27)',
color: 'rgb(137,189,27)', borderColor: 'rgba(137,189,2,0.27)',
borderColor: 'rgba(137,189,2,0.27)', borderWidth: 12
borderWidth: 12
}
}, },
data: [220, 182, 191, 134, 150, 120, 110, 125, 145, 122, 165, 122] data: [220, 182, 191, 134, 150, 120, 110, 125, 145, 122, 165, 122]
}, { }, {
@ -114,17 +109,12 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
lineStyle: { lineStyle: {
normal: { width: 1
width: 1
}
}, },
itemStyle: { itemStyle: {
normal: { color: 'rgb(0,136,212)',
color: 'rgb(0,136,212)', borderColor: 'rgba(0,136,212,0.2)',
borderColor: 'rgba(0,136,212,0.2)', borderWidth: 12
borderWidth: 12
}
}, },
data: [120, 110, 125, 145, 122, 165, 122, 220, 182, 191, 134, 150] data: [120, 110, 125, 145, 122, 165, 122, 220, 182, 191, 134, 150]
}, { }, {
@ -135,16 +125,12 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
lineStyle: { lineStyle: {
normal: { width: 1
width: 1
}
}, },
itemStyle: { itemStyle: {
normal: { color: 'rgb(219,50,51)',
color: 'rgb(219,50,51)', borderColor: 'rgba(219,50,51,0.2)',
borderColor: 'rgba(219,50,51,0.2)', borderWidth: 12
borderWidth: 12
}
}, },
data: [220, 182, 125, 145, 122, 191, 134, 150, 120, 110, 165, 122] data: [220, 182, 125, 145, 122, 191, 134, 150, 120, 110, 165, 122]
}] }]

View File

@ -448,16 +448,12 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
lineStyle: { lineStyle: {
normal: { width: 1
width: 1
}
}, },
itemStyle: { itemStyle: {
normal: { color: hexToRgb(color[i % color.length]),
color: hexToRgb(color[i % color.length]), borderColor: 'rgba(137,189,2,0.27)',
borderColor: 'rgba(137,189,2,0.27)', borderWidth: 12
borderWidth: 12
}
}, },
}; };
@ -565,16 +561,12 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
lineStyle: { lineStyle: {
normal: { width: 1
width: 1
}
}, },
itemStyle: { itemStyle: {
normal: { color: 'rgb(137,189,27)',
color: 'rgb(137,189,27)', borderColor: 'rgba(137,189,2,0.27)',
borderColor: 'rgba(137,189,2,0.27)', borderWidth: 12
borderWidth: 12
}
}, },
}] }]
}; };

View File

@ -516,11 +516,9 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
itemStyle: { itemStyle: {
normal: { color: hexToRgb(color[i % color.length]),
color: hexToRgb(color[i % color.length]), borderColor: 'rgba(137,189,2,0.27)',
borderColor: 'rgba(137,189,2,0.27)', borderWidth: 12
borderWidth: 12
}
}, },
}; };

View File

@ -145,9 +145,7 @@ export default {
data: yAxis1, data: yAxis1,
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: { color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER
}
} }
}, },
{ {
@ -155,9 +153,7 @@ export default {
data: yAxis2, data: yAxis2,
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
normal: { color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER_SHALLOW
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER_SHALLOW
}
} }
}] }]
}; };

View File

@ -223,7 +223,6 @@
</template> </template>
<script> <script>
import echarts from "echarts";
import MsChart from "@/business/components/common/chart/MsChart"; import MsChart from "@/business/components/common/chart/MsChart";
import {findThreadGroup} from "@/business/components/performance/test/model/ThreadGroup"; import {findThreadGroup} from "@/business/components/performance/test/model/ThreadGroup";
import {hasPermission} from "@/common/js/utils"; import {hasPermission} from "@/common/js/utils";
@ -516,11 +515,9 @@ export default {
symbolSize: 5, symbolSize: 5,
showSymbol: false, showSymbol: false,
itemStyle: { itemStyle: {
normal: { color: hexToRgb(color[i % color.length]),
color: hexToRgb(color[i % color.length]), borderColor: 'rgba(137,189,2,0.27)',
borderColor: 'rgba(137,189,2,0.27)', borderWidth: 12
borderWidth: 12
}
}, },
}; };