From 9654c692a10f30c957923828d3b97c7625157ab7 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Mon, 3 Nov 2014 13:11:46 +0000 Subject: [PATCH] Add fill styling option --- lib/timeline/component/LineGraph.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index 9195734f..54144f0c 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -1070,6 +1070,9 @@ LineGraph.prototype._drawLineGraph = function (dataset, group) { dFill = "M" + dataset[0].x + "," + svgHeight + " " + d + "L" + dataset[dataset.length - 1].x + "," + svgHeight; } 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); } // copy properties to path for drawing.