forked from github/dataease
commit
c0a65a8639
@ -711,13 +711,23 @@ export function getXAxis(chart) {
|
|||||||
}
|
}
|
||||||
} : null
|
} : null
|
||||||
|
|
||||||
|
const position = transAxisPosition(chart, a)
|
||||||
|
|
||||||
if (a.axisLabel.show && chart.type === 'bidirectional-bar') {
|
if (a.axisLabel.show && chart.type === 'bidirectional-bar') {
|
||||||
label.rotate = 0
|
label.rotate = 0
|
||||||
label.style.textAlign = 'start'
|
label.style.textAlign = 'start'
|
||||||
}
|
}
|
||||||
|
if (a.axisLabel.show && chart.type === 'bar-time-range') {
|
||||||
|
label.rotate = 0
|
||||||
|
if (position === 'top') {
|
||||||
|
label.style.textAlign = 'start'
|
||||||
|
} else {
|
||||||
|
label.style.textAlign = 'end'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
axis = {
|
axis = {
|
||||||
position: transAxisPosition(chart, a),
|
position: position,
|
||||||
title: title,
|
title: title,
|
||||||
grid: grid,
|
grid: grid,
|
||||||
label: label,
|
label: label,
|
||||||
|
Loading…
Reference in New Issue
Block a user