src/cal-heatmap.js
function autoAlignLabel() {
			// Auto-align label, depending on it's position
			if (!settings.hasOwnProperty("label") || (settings.hasOwnProperty("label") && !settings.label.hasOwnProperty("align"))) {
				switch(options.label.position) {
				case "left":
					options.label.align = "right";
					break;
				case "right":
					options.label.align = "left";
					break;
				default:
					options.label.align = "center";
				}

				if (options.label.rotate === "left") {
					options.label.align = "right";
				} else if (options.label.rotate === "right") {
					options.label.align = "left";
				}
			}

			if (!settings.hasOwnProperty("label") || (settings.hasOwnProperty("label") && !settings.label.hasOwnProperty("offset"))) {
				if (options.label.position === "left" || options.label.position === "right") {
					options.label.offset = {
						x: 10,
						y: 15
					};
				}
			}
		}
function autoAlignLabel() {
			// Auto-align label, depending on it's position
			if (!settings.hasOwnProperty("label") || (settings.hasOwnProperty("label") && !settings.label.hasOwnProperty("align"))) {
				switch(options.label.position) {
				case "left":
					options.label.align = "right";
					break;
				case "right":
					options.label.align = "left";
					break;
				default:
					options.label.align = "center";
				}

				if (options.label.rotate === "left") {
					options.label.align = "right";
				} else if (options.label.rotate === "right") {
					options.label.align = "left";
				}
			}

			if (!settings.hasOwnProperty("label") || (settings.hasOwnProperty("label") && !settings.label.hasOwnProperty("offset"))) {
				if (options.label.position === "left" || options.label.position === "right") {
					options.label.offset = {
						x: 10,
						y: 15
					};
				}
			}
		}
function autoAlignLabel ( ) { // Auto-align label, depending on it's position if ( ! settings . hasOwnProperty ( "label" ) || ( settings . hasOwnProperty ( "label" ) && ! settings . label . hasOwnProperty ( "align" ) ) ) { switch ( options . label . position ) { case "left" : options . label . align = "right" ; break ; case "right" : options . label . align = "left" ; break ; default : options . label . align = "center" ; } if ( options . label . rotate === "left" ) { options . label . align = "right" ; } else if ( options . label . rotate === "right" ) { options . label . align = "left" ; } } if ( ! settings . hasOwnProperty ( "label" ) || ( settings . hasOwnProperty ( "label" ) && ! settings . label . hasOwnProperty ( "offset" ) ) ) { if ( options . label . position === "left" || options . label . position === "right" ) { options . label . offset = { x : 10 , y : 15 } ; } } }
Fine-tune the label alignement depending on its position

@return void
Fine - tune the label alignement depending on its position