fix(测试跟踪): 首页柱状图宽度不一致

This commit is contained in:
shiziyuan9527 2022-02-15 15:27:11 +08:00 committed by 刘瑞斌
parent 997ab48b8a
commit b5ce86fe05
1 changed files with 14 additions and 12 deletions

View File

@ -139,7 +139,8 @@ export default {
orient: 'vertical', orient: 'vertical',
right: '80', right: '80',
}, },
series: [{ series: [
{
name: this.$t('test_track.home.function_case_count'), name: this.$t('test_track.home.function_case_count'),
data: yAxis1, data: yAxis1,
type: 'bar', type: 'bar',
@ -152,6 +153,7 @@ export default {
name: this.$t('test_track.home.relevance_case_count'), name: this.$t('test_track.home.relevance_case_count'),
data: yAxis2, data: yAxis2,
type: 'bar', type: 'bar',
barWidth: 50,
itemStyle: { itemStyle: {
color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER_SHALLOW color: this.$store.state.theme ? this.$store.state.theme : COUNT_NUMBER_SHALLOW
} }