Module:Dot chart/sandbox: Difference between revisions

Content deleted Content added
Undid revision 872792735 by BrandonXLF (talk)
Tags: Undo Reverted
Don't add border:none to improve compatibility with skin dark mode CSS
 
(4 intermediate revisions by 2 users not shown)
Line 161:
:css('position','absolute')
:css('bottom','0%')
:css('left',table.concat({((100/xLCount*k-100/xLCount)*0.85+15)-4,'%'}))
:wikitext(v)
table.insert(dotTable,tostring(div))
Line 170:
div
:css('position','absolute')
:css('bottom',table.concat({(((((100/yLCount*k-1)100/(yLCount)-1(100/yLCount/3))*85+5))+8100/yLCount/2)*1.502,'%'}))
:css('left','0%')
:wikitext(v)
Line 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 263 ⟶ 257:
:wikitext(p.data(frame))
div -- Creates box
:css('width', args["width"] or '240px')
:css('display', 'inline-block')
: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))
:wikitext(tostring(container))
:wikitext(legend(args))
:wikitext(args["bottom"])
if not args["topcolor"] and size/2 > 10 then
div:css('background', args["color"] or 'none')
end
if yesno(args['border']) ~= false then -- Creates box border