Commit 367e7b86 by Torkel Ödegaard Committed by GitHub

GraphNG: Fixed axis measurements (#29036)

parent c93dfeaa
...@@ -102,7 +102,7 @@ function calculateAxisSize(self: uPlot, values: string[], axisIdx: number) { ...@@ -102,7 +102,7 @@ function calculateAxisSize(self: uPlot, values: string[], axisIdx: number) {
let maxLength = values[0]; let maxLength = values[0];
for (let i = 0; i < values.length; i++) { for (let i = 0; i < values.length; i++) {
if (values[i].length > maxLength.length) { if (values[i].length > maxLength.length) {
maxLength = maxLength; maxLength = values[i];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment