src/coord/single/Single.js
function (ecModel, api) {
        ecModel.eachSeries(function (seriesModel) {
            if (seriesModel.coordinateSystem === this) {
                var data = seriesModel.getData();
                each(data.mapDimension(this.dimension, true), function (dim) {
                    this._axis.scale.unionExtentFromData(data, dim);
                }, this);
                axisHelper.niceScaleExtent(this._axis.scale, this._axis.model);
            }
        }, this);
    }
function (ecModel, api) {
        ecModel.eachSeries(function (seriesModel) {
            if (seriesModel.coordinateSystem === this) {
                var data = seriesModel.getData();
                each(data.mapDimension(this.dimension, true), function (dim) {
                    this._axis.scale.unionExtentFromData(data, dim);
                }, this);
                axisHelper.niceScaleExtent(this._axis.scale, this._axis.model);
            }
        }, this);
    }
function ( ecModel , api ) { ecModel . eachSeries ( function ( seriesModel ) { if ( seriesModel . coordinateSystem === this ) { var data = seriesModel . getData ( ) ; each ( data . mapDimension ( this . dimension , true ) , function ( dim ) { this . _axis . scale . unionExtentFromData ( data , dim ) ; } , this ) ; axisHelper . niceScaleExtent ( this . _axis . scale , this . _axis . model ) ; } } , this ) ; }
Update axis scale after data processed
@param  {module:echarts/model/Global} ecModel
@param  {module:echarts/ExtensionAPI} api
Update axis scale after data processed