]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update core.scale.js
authorSAiTO TOSHiKi <saito@koyo-se.net>
Fri, 16 Dec 2016 07:15:14 +0000 (15:15 +0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 17 Dec 2016 00:59:32 +0000 (19:59 -0500)
Change sie to size.

src/core/core.scale.js

index 57aefd1dad8a3d2c1c634d0f590854c33b70fa20..0ea82451c6004b3aeef6508c766d17c639bbc380 100644 (file)
@@ -696,7 +696,7 @@ module.exports = function(Chart) {
 
                                if (isHorizontal) {
                                        scaleLabelX = me.left + ((me.right - me.left) / 2); // midpoint of the width
-                                       scaleLabelY = options.position === 'bottom' ? me.bottom - (scaleLabelFont.size / 2) : me.top + (scaleLabelFont.sie / 2);
+                                       scaleLabelY = options.position === 'bottom' ? me.bottom - (scaleLabelFont.size / 2) : me.top + (scaleLabelFont.size / 2);
                                } else {
                                        var isLeft = options.position === 'left';
                                        scaleLabelX = isLeft ? me.left + (scaleLabelFont.size / 2) : me.right - (scaleLabelFont.size / 2);