Module:Chart: Difference between revisions

Content deleted Content added
adding 'chart' class to bar charts as well. adjusting margin-top to match paragraphs and images. adding missing semicolon.
Changing bar chart top-margin to 1em since the highest y-axis label is commonly outside the div bounding box and runs into other content. Pie chart seems OK though.
Line 405:
 
function drawChart()
table.insert( res, mw.text.tag( 'div', { class = 'chart', style = string.format( 'margin-top:0.5em1em;max-width:%spx;', width ) } ) )
table.insert( res, mw.text.tag( 'div', { style = string.format("position:relative;min-height:%spx;min-width:%spx;max-width:%spx;", height, width, width ) } ) )