function otherDimToDataDim (data, otherDim) {
    var dataDim = [];
    external_echarts_.util.each(data.dimensions, function (dimName) {
        var dimItem = data.getDimensionInfo(dimName);
        var otherDims = dimItem.otherDims;
        var dimIndex = otherDims[otherDim];
        if (dimIndex != null && dimIndex !== false) {
            dataDim[dimIndex] = dimItem.name;
        }
    });
    return dataDim;
}
If value is not array, then convert it to array.
@param  {*} value
@return {Array} [value] or value