Module:Graph: Difference between revisions

Content deleted Content added
Apply color-inversion-friendliness to legend title & labels, from sandbox
m Undid revision 925239569 by Tom.Reding (talk) Attempt to sync to [https://de.wikipedia.org/wiki/Modul:Graph] first
Line 3:
--
-- Version History (_PLEASE UPDATE when modifying anything_):
-- 2019-11-08 Apply color-inversion-friendliness to legend title & labels
-- 2018-10-13 Fix browser color-inversion issues via #54595d per [[mw:Template:Graph:PageViews]]
-- 2018-09-16 Allow disabling the legend for templates
Line 772 ⟶ 771:
stroke = "color",
title = legendTitle,
}
legend.properties = {
title = {
fill = { value = "#54595d" },
},
labels = {
fill = { value = "#54595d" },
},
}
if chartType == "pie" then
-- move legend from center position to top
legend.properties = { legend = { y = { value = -outerRadius } } }
legend = {
y = { value = -outerRadius },
},
title = {
fill = { value = "#54595d" }
},
labels = {
fill = { value = "#54595d" },
},
}
end
return legend