Content deleted Content added
Update |
|||
Line 58:
num_seasons = thisseason
end
end
if num_seasons < 1 then
num_seasons = 1
end
Line 112 ⟶ 115:
-- Color and legend variables
for season = 1,num_seasons do
args["color" .. season] = args["color" .. season] or '#CCCCFF';
timeline['y'..season..'Title'] = (args["legend" .. season] or season) .. " " -- The space after this is not a regular space, it is a copy-pasted non-breaking space so the graph registers season names that are numbers (such as 1984 for American Horror Story) as a string, not a number; if it registers as a number, it will register as the first season. Do not remove/change it.▼
if num_seasons > 1 then
▲ timeline['y'..season..'Title'] = (args["legend" .. season] or season) .. " " -- The space after this is not a regular space, it is a copy-pasted non-breaking space so the graph registers season names that are numbers (such as 1984 for American Horror Story) as a string, not a number; if it registers as a number, it will register as the first season. Do not remove/change it.
elseif timeline['legend'] then
timeline['legend'] = nil
end
timeline['colors'] = timeline['colors'] .. args["color" .. season] .. ','
end
|