Content deleted Content added
import xGrid/yGrid from de:Module:Graph (code by User:Mps). some code is still not yet merged. |
Tom.Reding (talk | contribs) Apply color-inversion-friendliness to legend title & labels, from sandbox |
||
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 771 ⟶ 772:
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 } },
title = {
fill = { value = "#54595d" }
},
labels = {
fill = { value = "#54595d" },
},
}
end
return legend
|