Skip to content

Commit

Permalink
Quick fix for non-rendering charts
Browse files Browse the repository at this point in the history
(cherry picked from commit f1d9c646683d7ac7489b22c24d029a407240eba8)
  • Loading branch information
betodealmeida committed Aug 22, 2018
1 parent fad8feb commit 8075b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/assets/src/visualizations/nvd3_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,10 @@ export default function nvd3Vis(slice, payload) {
// This is needed for correct chart dimensions if a chart is rendered in a hidden container
chart.width(width);
chart.height(height);
// XXX: quick fix while I figure out the real problem
if (slice.container === null) {
return;
}
slice.container.css('height', height + 'px');

svg
Expand Down

0 comments on commit 8075b37

Please sign in to comment.