sandbox/sandbox.js
function _handleDataSelectorChange () {
    let chartType = getCurrentType();
    let dataType = d3.select(`.${dataSelectorClass}`).property('value');
    let currentData = defaultData[chartType][dataType];

    storage.setDataByKey(savedDataKey, currentData);
    updateAllComponents();
}
function _handleDataSelectorChange () {
    let chartType = getCurrentType();
    let dataType = d3.select(`.${dataSelectorClass}`).property('value');
    let currentData = defaultData[chartType][dataType];

    storage.setDataByKey(savedDataKey, currentData);
    updateAllComponents();
}
function _handleDataSelectorChange ( ) { let chartType = getCurrentType ( ) ; let dataType = d3 . select ( ` ${ dataSelectorClass } ` ) . property ( 'value' ) ; let currentData = defaultData [ chartType ] [ dataType ] ; storage . setDataByKey ( savedDataKey , currentData ) ; updateAllComponents ( ) ; }
Handles data selection change, updates the data on the store and then updates all components
Handles data selection change updates the data on the store and then updates all components