Module:Chart: Difference between revisions

Content deleted Content added
Change ___location that 'barHeight' capping is done so that 'top' uses the correct value
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
Line 403:
setOffset, setWidth = groupBounds( i )
-- setWidth = 0.85 * setWidth
table.insert( res, mw.text.tag( 'div', { style = string.format( legendDivStyleFormat, setOffset + 51, setWidth - 102, setWidth - 102 ) }, xlegends[i] or '' ) )
table.insert( res, mw.text.tag( 'div', { style = string.format( tickDivstyleFormat, setOffset + setWidth / 2 ) }, '' ) )
end