Module:Dot chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 178:
return table.concat(dotTable)
end
 
---------- L A B E L S ---------------------------------------------------------
---------- Makes the labels ----------------------------------------------------
 
---------- L E G E N D ---------------------------------------------------------
Line 251 ⟶ 248:
:css('text-align','center')
:wikitext(args["top"])
end
args["padding"] = args["padding"] or "10px"
if not args["top"] and size/2 > 10 then
args["padding"] = size/2
end
Line 264 ⟶ 267:
:css('float',args["align"] or 'right')
:css('margin',args["margin"] or '2px')
:css('padding',args["padding"] or table.concat({size/2,'px'}))
:css('background',args["color"] or 'none')
:wikitext(tostring(top))