Module:Chart: Difference between revisions

Content deleted Content added
methinks
No edit summary
Line 332:
function calcx( gi, i )
local setOffset, setWidth = groupBounds( i )
if stack or numGroups == 1 then
local barWidth = math.min( 38, math.floor( 0.8 * setWidth ) )
return setOffset + (setWidth - barWidth) / 2, barWidth, setWidth
end
setWidth = 0.85 * setWidth
local barWidth = math.floor( 0.75 * setWidth / numGroups )
local left = setOffset + math.floor(setWidth ( gi - barWidth1 ) / 2numGroups * setWidth )
return left, barWidth
end