Browse Source

Fixed #1385: Draw lines on top of bars

webworkersNetwork
jos 9 years ago
parent
commit
04d3b97532
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      HISTORY.md
  2. +1
    -1
      lib/timeline/component/LineGraph.js

+ 4
- 0
HISTORY.md View File

@ -17,6 +17,10 @@ http://visjs.org
- Implemented option `multiselectPerGroup`. Thanks @hansmaulwurf23. - Implemented option `multiselectPerGroup`. Thanks @hansmaulwurf23.
### Graph2d
- Fixed #1385: Draw lines on top of bars.
## 2015-01-01, version 4.9.0 ## 2015-01-01, version 4.9.0

+ 1
- 1
lib/timeline/component/LineGraph.js View File

@ -671,13 +671,13 @@ LineGraph.prototype._updateGraph = function () {
} }
// draw the groups // draw the groups
BarFunctions.draw(groupIds, processedGroupData, this.framework);
for (i = 0; i < groupIds.length; i++) { for (i = 0; i < groupIds.length; i++) {
group = this.groups[groupIds[i]]; group = this.groups[groupIds[i]];
if (group.options.style != 'bar') { // bar needs to be drawn enmasse if (group.options.style != 'bar') { // bar needs to be drawn enmasse
group.draw(processedGroupData[groupIds[i]], group, this.framework); group.draw(processedGroupData[groupIds[i]], group, this.framework);
} }
} }
BarFunctions.draw(groupIds, processedGroupData, this.framework);
} }
} }
} }

Loading…
Cancel
Save