fix(测试跟踪): 添加chart图例最小数据的角度及高度

This commit is contained in:
song-cc-rock 2022-11-24 14:49:28 +08:00
parent fc62b403d6
commit 0373b10813
2 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,7 @@ export default {
data: yAxis1, data: yAxis1,
type: 'bar', type: 'bar',
barWidth: 16, barWidth: 16,
barMinHeight: 5,
itemStyle: { itemStyle: {
color: '#AA4FBF', color: '#AA4FBF',
barBorderRadius: [2, 2, 0, 0] barBorderRadius: [2, 2, 0, 0]
@ -120,6 +121,7 @@ export default {
data: yAxis2, data: yAxis2,
type: 'bar', type: 'bar',
barWidth: 16, barWidth: 16,
barMinHeight: 5,
itemStyle: { itemStyle: {
color: '#F9CB2E', color: '#F9CB2E',
barBorderRadius: [2, 2, 0, 0] barBorderRadius: [2, 2, 0, 0]

View File

@ -126,6 +126,7 @@ export default {
selectedMode: dataIsNotEmpty, selectedMode: dataIsNotEmpty,
itemGap: 16, itemGap: 16,
left: '50%', left: '50%',
top: 50,
y: 'center', y: 'center',
itemHeight: 8, itemHeight: 8,
itemWidth: 8, //icon itemWidth: 8, //icon
@ -212,6 +213,7 @@ export default {
avoidLabelOverlap: false, avoidLabelOverlap: false,
hoverAnimation: dataIsNotEmpty, hoverAnimation: dataIsNotEmpty,
legendHoverLink: false, legendHoverLink: false,
minAngle: 5,
label: { label: {
show: false, show: false,
}, },