src/coord/parallel/parallelPreprocessor.js
function createParallelIfNeeded(option) {
    if (option.parallel) {
        return;
    }

    var hasParallelSeries = false;

    zrUtil.each(option.series, function (seriesOpt) {
        if (seriesOpt && seriesOpt.type === 'parallel') {
            hasParallelSeries = true;
        }
    });

    if (hasParallelSeries) {
        option.parallel = [{}];
    }
}
function createParallelIfNeeded(option) {
    if (option.parallel) {
        return;
    }

    var hasParallelSeries = false;

    zrUtil.each(option.series, function (seriesOpt) {
        if (seriesOpt && seriesOpt.type === 'parallel') {
            hasParallelSeries = true;
        }
    });

    if (hasParallelSeries) {
        option.parallel = [{}];
    }
}
function createParallelIfNeeded ( option ) { if ( option . parallel ) { return ; } var hasParallelSeries = false ; zrUtil . each ( option . series , function ( seriesOpt ) { if ( seriesOpt && seriesOpt . type === 'parallel' ) { hasParallelSeries = true ; } } ) ; if ( hasParallelSeries ) { option . parallel = [ { } ] ; } }
Create a parallel coordinate if not exists.
@inner
Create a parallel coordinate if not exists .