|
|
@ -21,7 +21,7 @@ c3_chart_internal_fn.xForTitle = function () { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw(e); |
|
|
|
throw(e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (position.indexOf('right') >= 0) { |
|
|
|
if (position.indexOf('right') >= 0) { |
|
|
|
x = $$.currentWidth - textWidth - config.title_padding.right; |
|
|
|
x = $$.currentWidth - textWidth - config.title_padding.right; |
|
|
|
} else if (position.indexOf('center') >= 0) { |
|
|
|
} else if (position.indexOf('center') >= 0) { |
|
|
@ -41,8 +41,8 @@ c3_chart_internal_fn.yForTitle = function () { |
|
|
|
textHeight = 0; |
|
|
|
textHeight = 0; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
throw(e); |
|
|
|
throw(e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return $$.config.title_padding.top + textHeight; |
|
|
|
return $$.config.title_padding.top + textHeight; |
|
|
|
}; |
|
|
|
}; |
|
|
|
c3_chart_internal_fn.getTitlePadding = function() { |
|
|
|
c3_chart_internal_fn.getTitlePadding = function() { |
|
|
|