mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix jshint warnings
This commit is contained in:
parent
56d53e3ad4
commit
454f519b6d
@ -73,7 +73,7 @@
|
||||
});
|
||||
|
||||
// Adjust the padding to take into account displaying labels
|
||||
if (topScales.length == 0 || bottomScales.length == 0) {
|
||||
if (topScales.length === 0 || bottomScales.length === 0) {
|
||||
var maxFontHeight = 0;
|
||||
|
||||
var maxFontHeightFunction = function(scaleInstance) {
|
||||
@ -86,12 +86,12 @@
|
||||
helpers.each(leftScales, maxFontHeightFunction);
|
||||
helpers.each(rightScales, maxFontHeightFunction);
|
||||
|
||||
if (topScales.length == 0) {
|
||||
if (topScales.length === 0) {
|
||||
// Add padding so that we can handle drawing the top nicely
|
||||
yPadding += 0.75 * maxFontHeight; // 0.75 since padding added on both sides
|
||||
}
|
||||
|
||||
if (bottomScales.length == 0) {
|
||||
if (bottomScales.length === 0) {
|
||||
// Add padding so that we can handle drawing the bottom nicely
|
||||
yPadding += 1.5 * maxFontHeight;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user