function isDimensionStacked(data, stackedDim /*, stackedByDim*/) {
    // Each single series only maps to one pair of axis. So we do not need to
    // check stackByDim, whatever stacked by a dimension or stacked by index.
    return !!stackedDim && stackedDim === data.getCalculationInfo('stackedDimension');
        // && (
        //     stackedByDim != null
        //         ? stackedByDim === data.getCalculationInfo('stackedByDimension')
        //         : data.getCalculationInfo('isStackedByIndex')
        // );
}
@param {module:echarts/data/Source|Array} source Or raw data.
@param {module:echarts/model/Series} seriesModel
@param {Object} [opt]
@param {string} [opt.generateCoord]
@param {boolean} [opt.useEncodeDefaulter]