Module:Television ratings graph: Difference between revisions

Content deleted Content added
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
m Dummy edit: Actually, i believe the problem is that "numberargs" includes averages, not N/A. It just so happened that Z Nation ratings, which i am currently testing, has four N/A cells as well as four cells with average ratings.
Line 16:
-- #000 format
return tonumber("0x"..hex:sub(1,1)..hex:sub(1,1))/256, tonumber("0x"..hex:sub(2,2)..hex:sub(2,2))/256,
tonumber("0x"..hex:sub(3,3)..hex:sub(3,3))/256
else
-- #000000 format