Skip to content

Commit

Permalink
fix x axis label (#2691)
Browse files Browse the repository at this point in the history
  • Loading branch information
yileic authored and mistercrunch committed Apr 29, 2017
1 parent 50fcdd3 commit 09be02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/visualizations/nvd3_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function nvd3Vis(slice, payload) {

if (fd.x_axis_label && fd.x_axis_label !== '' && chart.xAxis) {
let distance = 0;
if (fd.bottom_margin) {
if (fd.bottom_margin && !isNaN(fd.bottom_margin)) {
distance = fd.bottom_margin - 50;
}
chart.xAxis.axisLabel(fd.x_axis_label).axisLabelDistance(distance);
Expand Down

0 comments on commit 09be02f

Please sign in to comment.