Module:Television ratings graph: Difference between revisions

Content deleted Content added
No edit summary
New parameter
Line 100:
timeline = timeline .. "ScaleMajor = gridcolor:a increment:1 start:0\n"
timeline = timeline .. "Legend = orientation:horizontal\n"
-- Interval parameter set to prevent overlapping bars
local bar = 1
if args.intervals then
timeline = timeline .. "BarData =\n"
for k,v in pairs(args) do
if tonumber(k) ~= nil then
timeline = timeline .. " bar:"..bar.." text:"..((bar == 1 or bar % args.intervals == 0) and bar or '').."\n"
bar = bar + 1
end
end
end
-- Plot data
timeline = timeline .. "PlotData =\n"
timeline = timeline .. " width:" .. barwidth .. "\n"