mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
I guess, don't include the offset. Bars now align correctly.
This commit is contained in:
parent
cf944ae651
commit
b8d8ff8bae
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user