|
|
|
@ -88,8 +88,12 @@ c3_chart_internal_fn.getSvgLeft = function (withoutRecompute) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c3_chart_internal_fn.getAxisWidthByAxisId = function (id, withoutRecompute) { |
|
|
|
|
var $$ = this, position = $$.axis.getLabelPositionById(id); |
|
|
|
|
return $$.axis.getMaxTickWidth(id, withoutRecompute) + (position.isInner ? 20 : 40); |
|
|
|
|
var $$ = this, position = $$.axis.getLabelPositionById(id), config = $$.config; |
|
|
|
|
if(config.axis_y_width !== undefined) { |
|
|
|
|
return config.axis_y_width + (position.isInner ? 20 : 40); |
|
|
|
|
} else { |
|
|
|
|
return $$.axis.getMaxTickWidth(id, withoutRecompute) + (position.isInner ? 20 : 40); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
c3_chart_internal_fn.getHorizontalAxisHeight = function (axisId) { |
|
|
|
|
var $$ = this, config = $$.config, h = 30; |
|
|
|
|