mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Category Scale now plays nice with full width
This commit is contained in:
parent
15ff3f9edc
commit
2bc386ee81
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user