From ae8350e4087da52dbe53af6ecedd91d2e6c9c3a3 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Sat, 1 Nov 2014 19:30:25 +0000 Subject: [PATCH] Update icon to reflect style --- lib/timeline/component/GraphGroup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/timeline/component/GraphGroup.js b/lib/timeline/component/GraphGroup.js index e757827f..f70cd3dd 100644 --- a/lib/timeline/component/GraphGroup.js +++ b/lib/timeline/component/GraphGroup.js @@ -89,6 +89,10 @@ GraphGroup.prototype.drawIcon = function(x, y, JSONcontainer, SVGcontainer, icon if (this.options.style == 'line') { path = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer); path.setAttributeNS(null, "class", this.className); + if(this.style !== undefined) { + path.setAttributeNS(null, "style", this.style); + } + path.setAttributeNS(null, "d", "M" + x + ","+y+" L" + (x + iconWidth) + ","+y+""); if (this.options.shaded.enabled == true) { fillPath = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer);