src/model/Series.js
function (option, ecModel) {
        var layoutMode = this.layoutMode;
        var inputPositionParams = layoutMode
            ? getLayoutParams(option) : {};

        // Backward compat: using subType on theme.
        // But if name duplicate between series subType
        // (for example: parallel) add component mainType,
        // add suffix 'Series'.
        var themeSubType = this.subType;
        if (ComponentModel.hasClass(themeSubType)) {
            themeSubType += 'Series';
        }
        zrUtil.merge(
            option,
            ecModel.getTheme().get(this.subType)
        );
        zrUtil.merge(option, this.getDefaultOption());

        // Default label emphasis `show`
        modelUtil.defaultEmphasis(option, 'label', ['show']);

        this.fillDataTextStyle(option.data);

        if (layoutMode) {
            mergeLayoutParam(option, inputPositionParams, layoutMode);
        }
    }
function (option, ecModel) {
        var layoutMode = this.layoutMode;
        var inputPositionParams = layoutMode
            ? getLayoutParams(option) : {};

        // Backward compat: using subType on theme.
        // But if name duplicate between series subType
        // (for example: parallel) add component mainType,
        // add suffix 'Series'.
        var themeSubType = this.subType;
        if (ComponentModel.hasClass(themeSubType)) {
            themeSubType += 'Series';
        }
        zrUtil.merge(
            option,
            ecModel.getTheme().get(this.subType)
        );
        zrUtil.merge(option, this.getDefaultOption());

        // Default label emphasis `show`
        modelUtil.defaultEmphasis(option, 'label', ['show']);

        this.fillDataTextStyle(option.data);

        if (layoutMode) {
            mergeLayoutParam(option, inputPositionParams, layoutMode);
        }
    }
function ( option , ecModel ) { var layoutMode = this . layoutMode ; var inputPositionParams = layoutMode ? getLayoutParams ( option ) : { } ; // Backward compat: using subType on theme. // But if name duplicate between series subType // (for example: parallel) add component mainType, // add suffix 'Series'. var themeSubType = this . subType ; if ( ComponentModel . hasClass ( themeSubType ) ) { themeSubType += 'Series' ; } zrUtil . merge ( option , ecModel . getTheme ( ) . get ( this . subType ) ) ; zrUtil . merge ( option , this . getDefaultOption ( ) ) ; // Default label emphasis `show` modelUtil . defaultEmphasis ( option , 'label' , [ 'show' ] ) ; this . fillDataTextStyle ( option . data ) ; if ( layoutMode ) { mergeLayoutParam ( option , inputPositionParams , layoutMode ) ; } }
Util for merge default and theme to option
@param  {Object} option
@param  {module:echarts/model/Global} ecModel
Util for merge default and theme to option