This commit is contained in:
2026-01-31 16:48:47 +08:00
parent 2cc924d091
commit fa4b36bd8c
5 changed files with 25 additions and 43 deletions

View File

@ -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: {