Content deleted Content added
determine number of episodes and use that where needed, instead of ratings entries in general, as they also include averages |
set default graph width so that there is the customary 2px space between the bars even for customized bar widths |
||
Line 92:
-- Graph width
local graphwidth
if args.bar_width == nil then
if num_episodes < 20 then graphwidth = num_episodes*13+98 end
else
if num_episodes < 20 then graphwidth = num_episodes*(13+args.bar_width-barwidth)+98
elseif num_episodes >= 20 and num_episodes < 50 then graphwidth = num_episodes*(12+args.bar_width-barwidth)+98
elseif num_episodes >= 50 and num_episodes < 80 then graphwidth = num_episodes*(11+args.bar_width-barwidth)+98
elseif num_episodes >= 80 then graphwidth = num_episodes*(10+args.bar_width-barwidth)+98
end
end
|