Content deleted Content added
Not seeing any reason why these large buffers on the text of the x-labels are needed so I'm reducing them, seems to work fine in my own testing |
Fix strange white gaps and wrong-sized bars in graphs which were caused by rounding errors |
||
Line 314:
local function calcHeights( gi, i, val )
local barHeight = math.max( 2, math.floor( val / yscales[gi] * chartHeight + 0.5 ) ) -- add half to make it "round" instead of "trunc", min height to 2 to avoid negative bar sizes
local top, base = chartHeight - barHeight, 0
if stack then
if tonumber(values[j][i]) > 0 then
base = base + math.
end
end
end
return barHeight, top - base
|