forked from github/dataease
refactor(图表): 图表标题和绘图区间隔调整
This commit is contained in:
parent
f49a1bbc46
commit
99415a67ff
@ -29,9 +29,9 @@ import { DOM } from '@antv/l7-utils'
|
|||||||
|
|
||||||
export function getPadding(chart: Chart): number[] {
|
export function getPadding(chart: Chart): number[] {
|
||||||
if (chart.drill) {
|
if (chart.drill) {
|
||||||
return [0, 10, 26, 10]
|
return [0, 10, 22, 10]
|
||||||
} else {
|
} else {
|
||||||
return [0, 10, 14, 10]
|
return [0, 10, 10, 10]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// color,label,tooltip,axis,legend,background
|
// color,label,tooltip,axis,legend,background
|
||||||
|
@ -587,9 +587,9 @@ const toolTip = computed(() => {
|
|||||||
|
|
||||||
const marginBottom = computed<string | 0>(() => {
|
const marginBottom = computed<string | 0>(() => {
|
||||||
if (titleShow.value || trackMenu.value.length > 0 || state.title_remark.show) {
|
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>(() => {
|
const iconSize = computed<string>(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user