Module:Dot chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Don't add border:none to improve compatibility with skin dark mode CSS
 
(49 intermediate revisions by 2 users not shown)
Line 68:
while(cols>i) do
local xValue = ((100/cols*i)+(100/cols/210))*1.1
i=i+1
while(tonumber(args["dots"])>j) do
Line 150:
div
:css('position','absolute')
:css('bottom',table.concat({y*0.985+1015,'%'}))
:css('left',table.concat({x*0.985+1015,'%'}))
:wikitext(tostring(InnerDiv))
table.insert(dotTable,tostring(div))
Line 161:
:css('position','absolute')
:css('bottom','0%')
:css('left',table.concat({((100/xLCount*k-100/xLCount)*0.985+1015)-4,'%'}))
:wikitext(v)
table.insert(dotTable,tostring(div))
Line 170:
div
:css('position','absolute')
:css('bottom',table.concat({(((((100/yLCount*k-100/yLCount)-(100/yLCount/3))+5))+100/yLCount/2)*01.9+1002,'%'}))
:css('left','0%')
:wikitext(v)
Line 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 args["color"] then
div:css('background', args["color"] or 'none')
end
if yesno(args['border']) ~= false then -- Creates box border