Module:Graph: Difference between revisions

Content deleted Content added
Pietrasagh (talk | contribs)
synh with Modul:Graph, other symbols shapes, symbols and line-widths serialization, see update notes, lowercase args names, new "nice" and "xGrid" / "yGrid" logic
Pietrasagh (talk | contribs)
fixed showSymbols and linewidths "" argument bug
Line 1:
 
-- ATTENTION: Please edit this code at https://de.wikipedia.org/wiki/Modul:Graph
-- This way all wiki languages can stay in sync. Thank you!
Line 287 ⟶ 288:
if not xType then xType = "string" end
end
 
return x, xType, xMin, xMax
end
Line 956:
local linewidthsString = frame.args.linewidths
local linewidths
if linewidthsString and linewidthsString ~= "" then linewidths = numericArray(linewidthsString) or false end
-- x and y axis caption
local xTitle = frame.args.xAxisTitle or frame.args.xaxistitle
Line 1,109:
end
end
 
-- grids
if xGrid then
Line 1,127:
end
end
 
-- symbol marks
if showSymbols then
Line 1,134:
 
if type(showSymbols) == "string" then
if showSymbols == numericArray("" then showSymbols) = true
else showSymbols = numericArray(showSymbols)
end
else
showSymbols = tonumber(showSymbols)
end
 
 
-- custom size
Line 1,151 ⟶ 1,152:
else
symSize = 50
end
-- symSizeScale
local symSizeScale = {}