更新
This commit is contained in:
@ -12,6 +12,10 @@ const props = defineProps({
|
||||
data: {
|
||||
type: Object,
|
||||
default: () => { }
|
||||
},
|
||||
rotate: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
});
|
||||
const emit = defineEmits(['click']);
|
||||
@ -108,7 +112,7 @@ function chartFn() {
|
||||
top: '15%',
|
||||
left: '2%',
|
||||
right: '2%',
|
||||
bottom: '15%',
|
||||
bottom: '0%',
|
||||
containLabel: true
|
||||
},
|
||||
tooltip: {
|
||||
@ -140,7 +144,8 @@ function chartFn() {
|
||||
},
|
||||
axisLabel: {
|
||||
interval: 0, // 控制标签的显示间隔,0 表示全部显示,可以根据需要调整为其他值,例如 1 表示每隔一个显示一个标签。
|
||||
color: '#666666'
|
||||
color: '#666666',
|
||||
rotate: props.rotate || 0,
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
|
||||
Reference in New Issue
Block a user