Module:Chart: Difference between revisions

Content deleted Content added
Undid revision 767212167 by קיפודנחש (talk); Removing the shadows makes the chart unprintable (Browsers remove backgrounds)
Attempting to add border to bar charts for better printing
Line 346:
local left, barWidth = calcx( gi, i )
local barHeight, top = calcHeights( gi, i, val )
local style = string.format("position:absolute;left:%spx;top:%spx;height:%spx;min-width:%spx;max-width:%spx;background-color:%s;border:1px solid %s;border-bottom:none;box-shadow:2px -1px 4px 0 silver;overflow:hidden;",
left, top, barHeight-1, barWidth-2, barWidth-2, color, color)
local link = links[gi] and links[gi][i] or ''
local img = not nulOrWhitespace( link ) and mw.ustring.format( '[[File:Transparent.png|1000px|link=%s|%s]]', link, custom and tooltip or '' ) or ''