src/coord/polar/polarCreator.js
function setAxis(axis, axisModel) {
    axis.type = axisModel.get('type');
    axis.scale = createScaleByModel(axisModel);
    axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';
    axis.inverse = axisModel.get('inverse');

    if (axisModel.mainType === 'angleAxis') {
        axis.inverse ^= axisModel.get('clockwise');
        var startAngle = axisModel.get('startAngle');
        axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));
    }

    // Inject axis instance
    axisModel.axis = axis;
    axis.model = axisModel;
}
function setAxis(axis, axisModel) {
    axis.type = axisModel.get('type');
    axis.scale = createScaleByModel(axisModel);
    axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';
    axis.inverse = axisModel.get('inverse');

    if (axisModel.mainType === 'angleAxis') {
        axis.inverse ^= axisModel.get('clockwise');
        var startAngle = axisModel.get('startAngle');
        axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));
    }

    // Inject axis instance
    axisModel.axis = axis;
    axis.model = axisModel;
}
function setAxis ( axis , axisModel ) { axis . type = axisModel . get ( 'type' ) ; axis . scale = createScaleByModel ( axisModel ) ; axis . onBand = axisModel . get ( 'boundaryGap' ) && axis . type === 'category' ; axis . inverse = axisModel . get ( 'inverse' ) ; if ( axisModel . mainType === 'angleAxis' ) { axis . inverse ^= axisModel . get ( 'clockwise' ) ; var startAngle = axisModel . get ( 'startAngle' ) ; axis . setExtent ( startAngle , startAngle + ( axis . inverse ? - 360 : 360 ) ) ; } // Inject axis instance axisModel . axis = axis ; axis . model = axisModel ; }
Set common axis properties
@param {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
@param {module:echarts/coord/polar/AxisModel}
@inner
Set common axis properties