src/component/marker/markerHelper.js
function markerTypeCalculatorWithExtent(
    mlType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex
) {
    var coordArr = [];

    var stacked = isDimensionStacked(data, targetDataDim /*, otherDataDim*/);
    var calcDataDim = stacked
        ? data.getCalculationInfo('stackResultDimension')
        : targetDataDim;

    var value = numCalculate(data, calcDataDim, mlType);

    var dataIndex = data.indicesOfNearest(calcDataDim, value)[0];
    coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);
    coordArr[targetCoordIndex] = data.get(targetDataDim, dataIndex);

    // Make it simple, do not visit all stacked value to count precision.
    var precision = numberUtil.getPrecision(data.get(targetDataDim, dataIndex));
    precision = Math.min(precision, 20);
    if (precision >= 0) {
        coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision);
    }

    return coordArr;
}
function markerTypeCalculatorWithExtent(
    mlType, data, otherDataDim, targetDataDim, otherCoordIndex, targetCoordIndex
) {
    var coordArr = [];

    var stacked = isDimensionStacked(data, targetDataDim /*, otherDataDim*/);
    var calcDataDim = stacked
        ? data.getCalculationInfo('stackResultDimension')
        : targetDataDim;

    var value = numCalculate(data, calcDataDim, mlType);

    var dataIndex = data.indicesOfNearest(calcDataDim, value)[0];
    coordArr[otherCoordIndex] = data.get(otherDataDim, dataIndex);
    coordArr[targetCoordIndex] = data.get(targetDataDim, dataIndex);

    // Make it simple, do not visit all stacked value to count precision.
    var precision = numberUtil.getPrecision(data.get(targetDataDim, dataIndex));
    precision = Math.min(precision, 20);
    if (precision >= 0) {
        coordArr[targetCoordIndex] = +coordArr[targetCoordIndex].toFixed(precision);
    }

    return coordArr;
}
function markerTypeCalculatorWithExtent ( mlType , data , otherDataDim , targetDataDim , otherCoordIndex , targetCoordIndex ) { var coordArr = [ ] ; var stacked = isDimensionStacked ( data , targetDataDim /*, otherDataDim*/ ) ; var calcDataDim = stacked ? data . getCalculationInfo ( 'stackResultDimension' ) : targetDataDim ; var value = numCalculate ( data , calcDataDim , mlType ) ; var dataIndex = data . indicesOfNearest ( calcDataDim , value ) [ 0 ] ; coordArr [ otherCoordIndex ] = data . get ( otherDataDim , dataIndex ) ; coordArr [ targetCoordIndex ] = data . get ( targetDataDim , dataIndex ) ; // Make it simple, do not visit all stacked value to count precision. var precision = numberUtil . getPrecision ( data . get ( targetDataDim , dataIndex ) ) ; precision = Math . min ( precision , 20 ) ; if ( precision >= 0 ) { coordArr [ targetCoordIndex ] = + coordArr [ targetCoordIndex ] . toFixed ( precision ) ; } return coordArr ; }
return precision; }
return precision ; }