src/charts/scatter-plot.js
function cleanData(originalData) {
            return originalData.reduce((acc, d) => {
                d.name = String(d[nameKey]);
                d.x = d[xKey];
                d.y = d[yKey];

                return [...acc, d];
            }, []);
        }
function cleanData(originalData) {
            return originalData.reduce((acc, d) => {
                d.name = String(d[nameKey]);
                d.x = d[xKey];
                d.y = d[yKey];

                return [...acc, d];
            }, []);
        }
function cleanData ( originalData ) { return originalData . reduce ( ( acc , d ) => { d . name = String ( d [ nameKey ] ) ; d . x = d [ xKey ] ; d . y = d [ yKey ] ; return [ ... acc , d ] ; } , [ ] ) ; }
Cleaning data casting the values and names to the proper type while keeping
the rest of properties on the data
@param  {ScatterPlotData} originalData  Raw data as passed to the container
@return  {ScatterPlotData}              Clean data
@private
Cleaning data casting the values and names to the proper type while keeping the rest of properties on the data