Module:Chart: Difference between revisions

Content deleted Content added
teach barchart to do tooltip value accumulation
teach barchart to hide group legends
Line 22:
unitsSuffix = 'units suffix',
groupNames = 'group names',
hideGroupLegends = 'hide group legends',
slices = 'slices',
slice = 'slice',
Line 36 ⟶ 37:
 
local function createGroupList( tab, legends, cols )
if #legends > 1 and not hideGroupLegends then
table.insert( tab, mw.text.tag( 'div' ) )
local list = {}
Line 260 ⟶ 261:
elseif k == keywords.defcolor then defcolor = v
elseif k == keywords.accumulateTooltip then accumulateTooltip = true
elseif k == keywords.hideGroupLegends then hideGroupLegends = true
else
for keyword, tab in pairs( {