code: 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);
      }
docs: Update axis scale after data processed
  @param  {module:echarts/model/Global} ecModel
  @param  {module:echarts/ExtensionAPI} api