mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
Merge pull request #13826 from dataease/pr@dev-v2@chart-antv-style
style(图表): 优化条形图辅助线文本位置为固定在上方,不随横轴位置改变
This commit is contained in:
commit
87f0654698
@ -836,9 +836,9 @@ export function getAnalyseHorizontal(chart: Chart) {
|
||||
})
|
||||
assistLine.push({
|
||||
type: 'text',
|
||||
position: [xAxisPosition === 'left' ? 'start' : 'end', value],
|
||||
position: ['start', value],
|
||||
content: content,
|
||||
offsetY: xAxisPosition === 'left' ? -2 : -10 * (content.length - 2),
|
||||
offsetY: 5,
|
||||
offsetX: 2,
|
||||
rotate: Math.PI / 2,
|
||||
style: {
|
||||
|
Loading…
Reference in New Issue
Block a user