Category Scale fixed

This commit is contained in:
Tanner Linsley 2015-06-12 16:18:20 -06:00
parent cfc008686b
commit 63b7b18b17
3 changed files with 3 additions and 3 deletions

2
Chart.js vendored
View File

@ -2090,7 +2090,7 @@
}
// Height
if (!this.isHorizontal()) {
if (this.isHorizontal()) {
var labelHeight = (Math.cos(helpers.toRadians(this.labelRotation)) * longestLabelWidth) + 1.5 * this.options.labels.fontSize;
minSize.height = Math.min(labelHeight, maxHeight);
} else if (this.options.display) {

2
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -122,7 +122,7 @@
}
// Height
if (!this.isHorizontal()) {
if (this.isHorizontal()) {
var labelHeight = (Math.cos(helpers.toRadians(this.labelRotation)) * longestLabelWidth) + 1.5 * this.options.labels.fontSize;
minSize.height = Math.min(labelHeight, maxHeight);
} else if (this.options.display) {