Module:Chart: Difference between revisions

Content deleted Content added
Upgrade from sandbox
Bugfix for extremely lopsided charts
Line 321:
base = math.floor( chartHeight * rawbase / yscales[gi] ) -- normally, and especially if it's "stack", all the yscales must be equal.
end
if barHeight < 2 then
barHeight = 2 -- Otherwise the template would try to create a bar with a negative height
end
return barHeight, top - base
end