mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix (#2692)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user