sandbox/sandbox.js
function _handleChartSelectorChange() {
    storage.clear();

    let chartType = d3.select(`.${chartSelectorClass}`).property('value');

    storage.setDataByKey(savedChartTypeKey, chartType);
    updateAllComponents();
}
function _handleChartSelectorChange() {
    storage.clear();

    let chartType = d3.select(`.${chartSelectorClass}`).property('value');

    storage.setDataByKey(savedChartTypeKey, chartType);
    updateAllComponents();
}
function _handleChartSelectorChange ( ) { storage . clear ( ) ; let chartType = d3 . select ( ` ${ chartSelectorClass } ` ) . property ( 'value' ) ; storage . setDataByKey ( savedChartTypeKey , chartType ) ; updateAllComponents ( ) ; }
Updates the chart type when the chart selector is changed
Updates the chart type when the chart selector is changed