Modified the data processing for the scatter chart to make it more usable