From 04d3b97532e379b877d91cf166ed36c138c98006 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 22 Oct 2015 16:43:41 +0200 Subject: [PATCH] Fixed #1385: Draw lines on top of bars --- HISTORY.md | 4 ++++ lib/timeline/component/LineGraph.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 1a6b807b..ec29e27c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -17,6 +17,10 @@ http://visjs.org - Implemented option `multiselectPerGroup`. Thanks @hansmaulwurf23. +### Graph2d + +- Fixed #1385: Draw lines on top of bars. + ## 2015-01-01, version 4.9.0 diff --git a/lib/timeline/component/LineGraph.js b/lib/timeline/component/LineGraph.js index f612ff52..23e82e9e 100644 --- a/lib/timeline/component/LineGraph.js +++ b/lib/timeline/component/LineGraph.js @@ -671,13 +671,13 @@ LineGraph.prototype._updateGraph = function () { } // draw the groups + BarFunctions.draw(groupIds, processedGroupData, this.framework); for (i = 0; i < groupIds.length; i++) { group = this.groups[groupIds[i]]; if (group.options.style != 'bar') { // bar needs to be drawn enmasse group.draw(processedGroupData[groupIds[i]], group, this.framework); } } - BarFunctions.draw(groupIds, processedGroupData, this.framework); } } }