|
|
@ -368,7 +368,10 @@ DataAxis.prototype._redrawLabels = function () { |
|
|
|
} |
|
|
|
|
|
|
|
// Note that title is rotated, so we're using the height, not width!
|
|
|
|
var titleWidth = this.options.title[orientation].text === undefined ? 0 : this.props.titleCharHeight; |
|
|
|
var titleWidth = 0; |
|
|
|
if(this.options.title[orientation] !== undefined) { |
|
|
|
titleWidth = this.props.titleCharHeight; |
|
|
|
} |
|
|
|
var offset = this.options.icons == true ? Math.max(this.options.iconWidth, titleWidth) + this.options.labelOffsetX + 15 : titleWidth + this.options.labelOffsetX + 15; |
|
|
|
|
|
|
|
// this will resize the yAxis to accommodate the labels.
|
|
|
@ -470,7 +473,7 @@ DataAxis.prototype._redrawTitle = function (orientation) { |
|
|
|
DOMutil.prepareElements(this.DOMelements.title); |
|
|
|
|
|
|
|
// Check if the title is defined for this axes
|
|
|
|
if(this.options.title[orientation] == false || this.options.title[orientation].text === undefined) { |
|
|
|
if(this.options.title[orientation] == undefined || this.options.title[orientation].text === undefined) { |
|
|
|
return; |
|
|
|
} |
|
|
|
var title = DOMutil.getDOMElement('div',this.DOMelements.title, this.dom.frame); |
|
|
|