I guess, don't include the offset. Bars now align correctly.

This commit is contained in:
Tanner Linsley 2015-09-24 22:49:43 -06:00
parent cf944ae651
commit b8d8ff8bae

View File

@ -273,7 +273,7 @@
var xScale = this.getScaleForID(this.getDataset().xAxisID);
var ruler = this.getRuler();
var leftTick = xScale.getPixelForValue(null, index, datasetIndex, true);
var leftTick = xScale.getPixelForValue(null, index, datasetIndex, this.chart.isCombo);
leftTick -= this.chart.isCombo ? (ruler.tickWidth / 2) : 0;
if (yScale.options.stacked) {