|
|
@ -228,8 +228,6 @@ |
|
|
|
__axis_y2_padding = getConfig(['axis', 'y2', 'padding']), |
|
|
|
__axis_y2_padding = getConfig(['axis', 'y2', 'padding']), |
|
|
|
__axis_y2_ticks = getConfig(['axis', 'y2', 'ticks'], 10); |
|
|
|
__axis_y2_ticks = getConfig(['axis', 'y2', 'ticks'], 10); |
|
|
|
|
|
|
|
|
|
|
|
var __zero_padding = getConfig(['zeropadding'], false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// grid
|
|
|
|
// grid
|
|
|
|
var __grid_x_show = getConfig(['grid', 'x', 'show'], false), |
|
|
|
var __grid_x_show = getConfig(['grid', 'x', 'show'], false), |
|
|
|
__grid_x_type = getConfig(['grid', 'x', 'type'], 'tick'), |
|
|
|
__grid_x_type = getConfig(['grid', 'x', 'type'], 'tick'), |
|
|
@ -1229,9 +1227,6 @@ |
|
|
|
if (hasBarType(yTargets) && !hasNegativeValueInTargets(yTargets)) { |
|
|
|
if (hasBarType(yTargets) && !hasNegativeValueInTargets(yTargets)) { |
|
|
|
padding_bottom = yDomainMin; |
|
|
|
padding_bottom = yDomainMin; |
|
|
|
} |
|
|
|
} |
|
|
|
if (__zero_padding && !hasNegativeValueInTargets(yTargets)) { |
|
|
|
|
|
|
|
padding_bottom -= padding_bottom; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return [yDomainMin - padding_bottom, yDomainMax + padding_top]; |
|
|
|
return [yDomainMin - padding_bottom, yDomainMax + padding_top]; |
|
|
|
} |
|
|
|
} |
|
|
|
function getXDomainMin(targets) { |
|
|
|
function getXDomainMin(targets) { |
|
|
@ -1248,8 +1243,6 @@ |
|
|
|
} else if (hasBarType(targets)) { |
|
|
|
} else if (hasBarType(targets)) { |
|
|
|
maxDataCount = getMaxDataCount(); |
|
|
|
maxDataCount = getMaxDataCount(); |
|
|
|
padding = maxDataCount > 1 ? (diff / (maxDataCount - 1)) / 2 : 0.5; |
|
|
|
padding = maxDataCount > 1 ? (diff / (maxDataCount - 1)) / 2 : 0.5; |
|
|
|
} else if (__zero_padding) { |
|
|
|
|
|
|
|
padding = diff * 0.001; |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
padding = diff * 0.01; |
|
|
|
padding = diff * 0.01; |
|
|
|
} |
|
|
|
} |
|
|
|