diff --git a/lib/DOMutil.js b/lib/DOMutil.js index 5c78a4fb..31d2bfc5 100644 --- a/lib/DOMutil.js +++ b/lib/DOMutil.js @@ -150,7 +150,7 @@ exports.drawPoint = function(x, y, group, JSONcontainer, svgContainer, labelObj) } if(group.options.drawPoints.styles !== undefined) { - point.setAttributeNS(null, "style", 'vis-' + group.group.options.drawPoints.styles); + point.setAttributeNS(null, "style", group.group.options.drawPoints.styles); } point.setAttributeNS(null, "class", group.className + " vis-point"); //handle label diff --git a/lib/timeline/component/GraphGroup.js b/lib/timeline/component/GraphGroup.js index 9c0291b1..9f58fdc8 100644 --- a/lib/timeline/component/GraphGroup.js +++ b/lib/timeline/component/GraphGroup.js @@ -138,7 +138,7 @@ GraphGroup.prototype.drawIcon = function(x, y, JSONcontainer, SVGcontainer, icon path = DOMutil.getSVGElement("path", JSONcontainer, SVGcontainer); path.setAttributeNS(null, "class", this.className); if(this.style !== undefined) { - path.setAttributeNS(null, "style", 'vis-' + this.style); + path.setAttributeNS(null, "style", this.style); } path.setAttributeNS(null, "d", "M" + x + ","+y+" L" + (x + iconWidth) + ","+y+""); diff --git a/lib/timeline/component/graph2d_types/line.js b/lib/timeline/component/graph2d_types/line.js index 3a20ef14..d7f548aa 100644 --- a/lib/timeline/component/graph2d_types/line.js +++ b/lib/timeline/component/graph2d_types/line.js @@ -119,7 +119,7 @@ Line.prototype.draw = function (dataset, group, framework) { path = DOMutil.getSVGElement('path', framework.svgElements, framework.svg); path.setAttributeNS(null, "class", group.className); if(group.style !== undefined) { - path.setAttributeNS(null, "style", 'vis-' + group.style); + path.setAttributeNS(null, "style", group.style); } // construct path from dataset