src/component/helper/BrushTargetManager.js
function getScales(xyMinMaxCurr, xyMinMaxOrigin) {
    var sizeCurr = getSize(xyMinMaxCurr);
    var sizeOrigin = getSize(xyMinMaxOrigin);
    var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];
    isNaN(scales[0]) && (scales[0] = 1);
    isNaN(scales[1]) && (scales[1] = 1);
    return scales;
}
function getScales(xyMinMaxCurr, xyMinMaxOrigin) {
    var sizeCurr = getSize(xyMinMaxCurr);
    var sizeOrigin = getSize(xyMinMaxOrigin);
    var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];
    isNaN(scales[0]) && (scales[0] = 1);
    isNaN(scales[1]) && (scales[1] = 1);
    return scales;
}
function getScales ( xyMinMaxCurr , xyMinMaxOrigin ) { var sizeCurr = getSize ( xyMinMaxCurr ) ; var sizeOrigin = getSize ( xyMinMaxOrigin ) ; var scales = [ sizeCurr [ 0 ] / sizeOrigin [ 0 ] , sizeCurr [ 1 ] / sizeOrigin [ 1 ] ] ; isNaN ( scales [ 0 ] ) && ( scales [ 0 ] = 1 ) ; isNaN ( scales [ 1 ] ) && ( scales [ 1 ] = 1 ) ; return scales ; }
We have to process scale caused by dataZoom manually, although it might be not accurate.
We have to process scale caused by dataZoom manually although it might be not accurate .