|
|
@ -268,13 +268,13 @@ c3_chart_internal_fn.getMaxTickWidth = function (id, withoutRecompute) { |
|
|
|
targetsToShow = $$.filterTargetsToShow($$.data.targets); |
|
|
|
targetsToShow = $$.filterTargetsToShow($$.data.targets); |
|
|
|
if (id === 'y') { |
|
|
|
if (id === 'y') { |
|
|
|
scale = $$.y.copy().domain($$.getYDomain(targetsToShow, 'y')); |
|
|
|
scale = $$.y.copy().domain($$.getYDomain(targetsToShow, 'y')); |
|
|
|
axis = $$.getYAxis(scale, $$.yOrient, config.axis_y_tick_format, $$.getYAxisTickValues()); |
|
|
|
axis = $$.getYAxis(scale, $$.yOrient, config.axis_y_tick_format, $$.yAxisTickValues); |
|
|
|
} else if (id === 'y2') { |
|
|
|
} else if (id === 'y2') { |
|
|
|
scale = $$.y2.copy().domain($$.getYDomain(targetsToShow, 'y2')); |
|
|
|
scale = $$.y2.copy().domain($$.getYDomain(targetsToShow, 'y2')); |
|
|
|
axis = $$.getYAxis(scale, $$.y2Orient, config.axis_y2_tick_format, $$.getY2AxisTickValues()); |
|
|
|
axis = $$.getYAxis(scale, $$.y2Orient, config.axis_y2_tick_format, $$.y2AxisTickValues); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
scale = $$.x.copy().domain($$.getXDomain(targetsToShow)); |
|
|
|
scale = $$.x.copy().domain($$.getXDomain(targetsToShow)); |
|
|
|
axis = $$.getXAxis(scale, $$.xOrient, $$.getXAxisTickFormat(), $$.getXAxisTickValues()); |
|
|
|
axis = $$.getXAxis(scale, $$.xOrient, $$.xAxisTickFormat, $$.xAxisTickValues); |
|
|
|
} |
|
|
|
} |
|
|
|
$$.d3.select('body').append("g").style('visibility', 'hidden').call(axis).each(function () { |
|
|
|
$$.d3.select('body').append("g").style('visibility', 'hidden').call(axis).each(function () { |
|
|
|
$$.d3.select(this).selectAll('text tspan').each(function () { |
|
|
|
$$.d3.select(this).selectAll('text tspan').each(function () { |
|
|
|