Keep same reference on data and values for scatter

Hi,

I was having issues with lineChart changing the reference to values, after digging a bit I narrowed it down to those 2 `map`s which should actually be `forEach`s, so that fixes it.

Sorry for all the whitespace trimming... :(