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