Skip to content

Commit

Permalink
fix (#2692)
Browse files Browse the repository at this point in the history
  • Loading branch information
yileic authored and Alanna Scott committed Apr 28, 2017
1 parent ce70505 commit 903612a
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 @@ -93,7 +93,7 @@ function nvd3Vis(slice, payload) {
payloadData.data.forEach((d) => {
const axisLabels = d.values;
for (let i = 0; i < axisLabels.length; i++) {
maxLabelSize = Math.max(axisLabels[i].x.length, maxLabelSize);
maxLabelSize = Math.max(axisLabels[i].x.toString().length, maxLabelSize);
}
});
stretchMargin = Math.ceil(pixelsPerCharX * maxLabelSize);
Expand Down

0 comments on commit 903612a

Please sign in to comment.