Module:Television ratings graph: Difference between revisions

Content deleted Content added
Custom legend
oops typo
 
(One intermediate revision by the same user not shown)
Line 125:
rgbG = tonumber("0x"..hex:sub(3,4))/256
rgbB = tonumber("0x"..hex:sub(5,6))/256
timelinelocal legend = timeline .. "\n id:season"..season.." value:rgb("..rgbR..", "..rgbG..", "..rgbB..") legend:"..season_title.."_"..(args["legend" .. season] and args["legend" .. season] or season ).."\n"
timeline = timeline .. "\n id:season"..season.." value:rgb("..rgbR..", "..rgbG..", "..rgbB..") legend:"..legend:gsub(" ", "_").."\n"
end
timeline = timeline .. "\n id:bars value:gray(0.95)"