src/ECharts.php
public static function registerTheme($theme)
    {
        $themes = (array) $theme;
        array_walk($themes, function (&$name) {
            $name .= '.js';
        });
        static::$_themeJsFiles = array_unique(array_merge(static::$_themeJsFiles, $themes));
        if (static::$_themeJsFiles) {
            ThemeAsset::register(Yii::$app->getView())->js = static::$_themeJsFiles;
        }
    }
public static function registerTheme($theme)
    {
        $themes = (array) $theme;
        array_walk($themes, function (&$name) {
            $name .= '.js';
        });
        static::$_themeJsFiles = array_unique(array_merge(static::$_themeJsFiles, $themes));
        if (static::$_themeJsFiles) {
            ThemeAsset::register(Yii::$app->getView())->js = static::$_themeJsFiles;
        }
    }
public static function registerTheme ( $ theme ) { $ themes = ( array ) $ theme ; array_walk ( $ themes , function ( & $ name ) { $ name .= '.js' ; } ) ; static :: $ _themeJsFiles = array_unique ( array_merge ( static :: $ _themeJsFiles , $ themes ) ) ; if ( static :: $ _themeJsFiles ) { ThemeAsset :: register ( Yii :: $ app -> getView ( ) ) -> js = static :: $ _themeJsFiles ; } }
Registers the JS files of the given themes.

@param string|array $theme
Registers the JS files of the given themes .