Skip to content

Commit

Permalink
fix bar chart value overlap with legend (apache#6145)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and bipinsoniguavus committed Dec 24, 2018
1 parent 16b1b2f commit a0c6c89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/assets/src/visualizations/nvd3/NVD3Vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a0c6c89

Please sign in to comment.