mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
fix bar chart value overlap with legend (#6145)
This commit is contained in:
committed by
Chris Williams
parent
04e5e87114
commit
bc4dfad6c8
@@ -322,6 +322,9 @@ function nvd3Vis(element, props) {
|
||||
});
|
||||
}
|
||||
if (showBarValue) {
|
||||
// Add more margin to avoid label colliding with legend.
|
||||
const top = chart.margin().top;
|
||||
chart.margin({ top: top + 24 });
|
||||
setTimeout(function () {
|
||||
drawBarValues(svg, data, isBarStacked, yAxisFormat);
|
||||
}, ANIMATION_TIME);
|
||||
|
||||
Reference in New Issue
Block a user