Content deleted Content added
default width |
Tt appears that "n/a" cells are also included in "numberargs" when calculating the default width, which they shouldn't. What should "N/A cells" be replaced with in this line for example? ... if numberargs < 20 then defaultwidth = (numberargs-N/A cells)*13+98 |
||
Line 70:
elseif numberargs >= 50 and numberargs < 80 then barwidth = 6
elseif numberargs >= 80 then barwidth = 5
end
-- Basis parameters
timeline = timeline .. "ImageSize = width:" .. (args.width or
timeline = timeline .. "PlotArea = left:50 bottom:70 top:20 right:50\n"
timeline = timeline .. "AlignBars = justify\n"
Line 210 ⟶ 202:
end
timeline = timeline .. "TextData =\n"
timeline = timeline .. " pos:(" .. ((args.width or
timeline = timeline .. " pos:(10," .. ((args.height or 300)-10) .. ") textcolor:black fontsize:S text:" .. ((countryDisplayUS or countryDisplayUK or countryDisplayOther) or "") .. ((countryDisplayUS or countryDisplayUK or countryDisplayOther) and " v" or "V") .. "iewers (" .. multiple .. ")\n"
|