Browse Source

fixed pointdrawing with new barchart functionality

v3_develop
Alex de Mulder 10 years ago
parent
commit
8b175f3df2
3 changed files with 24152 additions and 24152 deletions
  1. +24147
    -24147
      dist/vis.js
  2. +1
    -1
      examples/graph2d/11_barsSideBySideGroups.html
  3. +4
    -4
      lib/timeline/component/LineGraph.js

+ 24147
- 24147
dist/vis.js
File diff suppressed because it is too large
View File


+ 1
- 1
examples/graph2d/11_barsSideBySideGroups.html View File

@ -67,7 +67,7 @@ var options = {
var options = {
style:'bar',
barChart: {width:50, align:'center'}, // align: left, center, right
drawPoints: false,
drawPoints: true,
dataAxis: {
icons:true
},

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

@ -803,11 +803,11 @@ LineGraph.prototype._drawBarGraph = function (dataset, group) {
}
}
DOMutil.drawBar(dataset[i].x + drawData.offset, dataset[i].y, drawData.width, group.zeroPosition - dataset[i].y, group.className + ' bar', this.svgElements, this.svg);
}
// draw points
if (group.options.drawPoints.enabled == true) {
this._drawPoints(dataset, group, this.svgElements, this.svg, offset);
// draw points
if (group.options.drawPoints.enabled == true) {
DOMutil.drawPoint(dataset[i].x + drawData.offset, dataset[i].y, group, this.svgElements, this.svg);
}
}
}
}

Loading…
Cancel
Save