Browse Source

Add fill styling option

v3_develop
Chris Jackson 10 years ago
parent
commit
9654c692a1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/timeline/component/LineGraph.js

+ 3
- 0
lib/timeline/component/LineGraph.js View File

@ -1070,6 +1070,9 @@ LineGraph.prototype._drawLineGraph = function (dataset, group) {
dFill = "M" + dataset[0].x + "," + svgHeight + " " + d + "L" + dataset[dataset.length - 1].x + "," + svgHeight; dFill = "M" + dataset[0].x + "," + svgHeight + " " + d + "L" + dataset[dataset.length - 1].x + "," + svgHeight;
} }
fillPath.setAttributeNS(null, "class", group.className + " fill"); fillPath.setAttributeNS(null, "class", group.className + " fill");
if(group.options.shaded.style !== undefined) {
fillPath.setAttributeNS(null, "style", group.options.shaded.style);
}
fillPath.setAttributeNS(null, "d", dFill); fillPath.setAttributeNS(null, "d", dFill);
} }
// copy properties to path for drawing. // copy properties to path for drawing.

Loading…
Cancel
Save