sandbox/sandbox.js
function _handleAddTooltip(tooltipType) {
    let initString = getCurrentConfig();
    let tooltipInitString = tooltipConfigs[tooltipType].initString;
    initString = initString.concat(tooltipInitString);
    configEditor.setValue(prettifyInitString(initString));
    setNewChart();
}
function _handleAddTooltip(tooltipType) {
    let initString = getCurrentConfig();
    let tooltipInitString = tooltipConfigs[tooltipType].initString;
    initString = initString.concat(tooltipInitString);
    configEditor.setValue(prettifyInitString(initString));
    setNewChart();
}
function _handleAddTooltip ( tooltipType ) { let initString = getCurrentConfig ( ) ; let tooltipInitString = tooltipConfigs [ tooltipType ] . initString ; initString = initString . concat ( tooltipInitString ) ; configEditor . setValue ( prettifyInitString ( initString ) ) ; setNewChart ( ) ; }
Adds tooltip code to the editor
@param  {string} tooltipType Constant from constant file
Adds tooltip code to the editor