function setNewChart(chartData=getCurrentData(), chartInitString=getCurrentConfig(), chartType=getCurrentType()) {
    domHelpers.removeBriteChartContainer();
    domHelpers.addBritechartContainer();

    console.log(storage.getData());
    let chart = window[chartType]();
    let tip = window['tooltip']();
    let miniTip = window['mini-tooltip']();

    // TODO investigate why we need this for the tooltip to work
    if (chartType === 'stacked-area') {
        tip.topicLabel('values');
    }

    try {
        eval(chartInitString);
    } catch (e) {
        console.error(e);
    }

    d3.select(`.${britechartContainerClass}`).datum(chartData).call(chart);
    d3.select(`.${britechartContainerClass} ${constants.chartConfigs[chartType].tooltipSelector}`).datum([]).call(tip);
    d3.select(`.${tooltipMetaGroup}`).datum([]).call(miniTip);
}
Removes the chart and adds a new one. It updates all data and sets the new chart with it.
NOTE: chart, tip and miniTip are available variables in teh chart config window
TODO: Write a message around the chart config text box noting that chart, tip and miniTip are available
@param {Object} chartData       Chart data
@param {string} chartInitString Chart init string, formatted configuration for the chart to be eval'd
@param {string} chartType       type of chart