refactor(图表): 图表标题和绘图区间隔调整

This commit is contained in:
wisonic-s 2024-04-22 17:32:55 +08:00
parent f49a1bbc46
commit 99415a67ff
2 changed files with 4 additions and 4 deletions

View File

@ -29,9 +29,9 @@ import { DOM } from '@antv/l7-utils'
export function getPadding(chart: Chart): number[] {
if (chart.drill) {
return [0, 10, 26, 10]
return [0, 10, 22, 10]
} else {
return [0, 10, 14, 10]
return [0, 10, 10, 10]
}
}
// color,label,tooltip,axis,legend,background

View File

@ -587,9 +587,9 @@ const toolTip = computed(() => {
const marginBottom = computed<string | 0>(() => {
if (titleShow.value || trackMenu.value.length > 0 || state.title_remark.show) {
return 8 * scale.value + 'px'
return 12 * scale.value + 'px'
}
return 0
return 12
})
const iconSize = computed<string>(() => {