|
|
@ -186,7 +186,7 @@ exports.drawPoint = function(x, y, group, JSONcontainer, svgContainer, labelObj) |
|
|
|
* @param y |
|
|
|
* @param className |
|
|
|
*/ |
|
|
|
exports.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer) { |
|
|
|
exports.drawBar = function (x, y, width, height, className, JSONcontainer, svgContainer, style) { |
|
|
|
if (height != 0) { |
|
|
|
if (height < 0) { |
|
|
|
height *= -1; |
|
|
@ -198,5 +198,8 @@ exports.drawBar = function (x, y, width, height, className, JSONcontainer, svgCo |
|
|
|
rect.setAttributeNS(null, "width", width); |
|
|
|
rect.setAttributeNS(null, "height", height); |
|
|
|
rect.setAttributeNS(null, "class", className); |
|
|
|
if (style) { |
|
|
|
rect.setAttributeNS(null, "style", style); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |