mirror of https://github.com/apache/superset.git
fix bar chart value overlap with legend (#6145)
This commit is contained in:
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);
|
||||
|
|
Loading…
Reference in New Issue