src/coord/parallel/Parallel.js
function (parallelModel, ecModel, api) {

        var dimensions = parallelModel.dimensions;
        var parallelAxisIndex = parallelModel.parallelAxisIndex;

        each(dimensions, function (dim, idx) {

            var axisIndex = parallelAxisIndex[idx];
            var axisModel = ecModel.getComponent('parallelAxis', axisIndex);

            var axis = this._axesMap.set(dim, new ParallelAxis(
                dim,
                axisHelper.createScaleByModel(axisModel),
                [0, 0],
                axisModel.get('type'),
                axisIndex
            ));

            var isCategory = axis.type === 'category';
            axis.onBand = isCategory && axisModel.get('boundaryGap');
            axis.inverse = axisModel.get('inverse');

            // Injection
            axisModel.axis = axis;
            axis.model = axisModel;
            axis.coordinateSystem = axisModel.coordinateSystem = this;

        }, this);
    }
function (parallelModel, ecModel, api) {

        var dimensions = parallelModel.dimensions;
        var parallelAxisIndex = parallelModel.parallelAxisIndex;

        each(dimensions, function (dim, idx) {

            var axisIndex = parallelAxisIndex[idx];
            var axisModel = ecModel.getComponent('parallelAxis', axisIndex);

            var axis = this._axesMap.set(dim, new ParallelAxis(
                dim,
                axisHelper.createScaleByModel(axisModel),
                [0, 0],
                axisModel.get('type'),
                axisIndex
            ));

            var isCategory = axis.type === 'category';
            axis.onBand = isCategory && axisModel.get('boundaryGap');
            axis.inverse = axisModel.get('inverse');

            // Injection
            axisModel.axis = axis;
            axis.model = axisModel;
            axis.coordinateSystem = axisModel.coordinateSystem = this;

        }, this);
    }
function ( parallelModel , ecModel , api ) { var dimensions = parallelModel . dimensions ; var parallelAxisIndex = parallelModel . parallelAxisIndex ; each ( dimensions , function ( dim , idx ) { var axisIndex = parallelAxisIndex [ idx ] ; var axisModel = ecModel . getComponent ( 'parallelAxis' , axisIndex ) ; var axis = this . _axesMap . set ( dim , new ParallelAxis ( dim , axisHelper . createScaleByModel ( axisModel ) , [ 0 , 0 ] , axisModel . get ( 'type' ) , axisIndex ) ) ; var isCategory = axis . type === 'category' ; axis . onBand = isCategory && axisModel . get ( 'boundaryGap' ) ; axis . inverse = axisModel . get ( 'inverse' ) ; // Injection axisModel . axis = axis ; axis . model = axisModel ; axis . coordinateSystem = axisModel . coordinateSystem = this ; } , this ) ; }
Initialize cartesian coordinate systems
@private
Initialize cartesian coordinate systems