mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 16:26:52 +01:00
Category Scale now plays nice with full width
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
widthOffset += (valueWidth / 2);
|
||||
}
|
||||
|
||||
return this.left + Math.round(widthOffset);
|
||||
return this.left + this.margins.left + Math.round(widthOffset);
|
||||
} else {
|
||||
var innerHeight = this.height - (this.paddingTop + this.paddingBottom);
|
||||
var valueHeight = innerHeight / Math.max((this.data.labels.length - ((this.options.gridLines.offsetGridLines) ? 0 : 1)), 1);
|
||||
|
||||
Reference in New Issue
Block a user