sandbox/sandbox.js
function getCurrentConfig() {
    let initString = storage.getDataByKey(savedConfigKey);

    if (!initString) {

        let chartType = getCurrentType();
        let {chartConfig} = defaultConfig[chartType];

        initString = formatParamsIntoChartInitString(chartConfig);
        storage.setDataByKey(savedConfigKey, initString);
    }

    return initString;
}
function getCurrentConfig() {
    let initString = storage.getDataByKey(savedConfigKey);

    if (!initString) {

        let chartType = getCurrentType();
        let {chartConfig} = defaultConfig[chartType];

        initString = formatParamsIntoChartInitString(chartConfig);
        storage.setDataByKey(savedConfigKey, initString);
    }

    return initString;
}
function getCurrentConfig ( ) { let initString = storage . getDataByKey ( savedConfigKey ) ; if ( ! initString ) { let chartType = getCurrentType ( ) ; let { chartConfig } = defaultConfig [ chartType ] ; initString = formatParamsIntoChartInitString ( chartConfig ) ; storage . setDataByKey ( savedConfigKey , initString ) ; } return initString ; }
Gets teh current chart configuration either from the store or from the constants file.
If no configuraiton is found on the store, one is set from the constants.
@return {String}     config string
Gets teh current chart configuration either from the store or from the constants file . If no configuraiton is found on the store one is set from the constants .