Module:Dot chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
Tag: Reverted
Undid revision 872792735 by BrandonXLF (talk)
Tags: Undo Reverted
Line 168:
for k,v in pairs(yLabels) do
local div = mw.html.create('div')
div
:css('position','absolute')
if args["x labels"] then
:css('bottom',table.concat({(((k-1)/(yLCount-1))*85)+8.5,'%'}))
div
:css('positionleft','absolute0%')
:wikitext(v)
:css('bottom',table.concat({(((k-1)/(yLCount-1))*85)+8.5,'%'}))
:css('left','0%')
:wikitext(v)
else
div
:css('position','absolute')
:css('bottom',table.concat({((k-1)/(yLCount-1))*100,'%'}))
:css('left','0%')
:wikitext(v)
end
table.insert(dotTable,tostring(div))
end