diff --git a/core/frontend/src/views/chart/chart/common/common_antv.js b/core/frontend/src/views/chart/chart/common/common_antv.js index 5d4dedb723..3e27c4a66e 100644 --- a/core/frontend/src/views/chart/chart/common/common_antv.js +++ b/core/frontend/src/views/chart/chart/common/common_antv.js @@ -141,6 +141,11 @@ export function getLabel(chart) { if (l.position === 'inner') { label.offset = -10 } + } else if (chart.type.includes('bar')) { + label = { + layout: [{ type: 'limit-in-canvas' }], + position: l.position + } } else { label = { position: l.position