Content deleted Content added
BrandonXLF (talk | contribs) No edit summary Tag: Reverted |
BrandonXLF (talk | contribs) No edit summary Tag: Reverted |
||
Line 34:
for str in string.gmatch(args['x labels'], '([^, ]+)') do
table.insert(xLabels, str)
xLCount = xLCount + 1
end
end
Line 41:
for str in string.gmatch(args['y labels'], '([^, ]+)') do
table.insert(yLabels, str)
yLCount = yLCount + 1
end
end
Line 53:
and not string.match(k, 'color%-') then
table.insert(yTable, v)
yCount = yCount + 1
end
end
Line 63:
end
while
local xValue =
i = i + 1
while
j = j + 1
table.insert(xTable, xValue)
Line 146:
div
:css('position', 'absolute')
:css('bottom', y
:css('left', x
:wikitext(tostring(innerDiv))
table.insert(dotTable, tostring(div))
Line 153:
for k, v in pairs(xLabels) do
local innerDiv = mw.html.create('div')
local div = mw.html.create('div')
innerDiv
:css('position', 'relative')
:css('left', '-50%')
:wikitext(v)
div
:css('position', 'absolute')
:css('bottom', '0%')
:css('left', (
:wikitext(
table.insert(dotTable, tostring(div))
end
Line 166 ⟶ 171:
div
:css('position', 'absolute')
:css('bottom',
:css('left', '0%')
:wikitext(v)
|