scale = {
const x = d3.scaleUtc()
.domain(d3.extent(data, d => d.finishedTime)).nice()
.range([0, params.plot.width]);
const y = d3.scaleLinear()
.domain([0, d3.max(data, d => d.wpm)]).nice()
.range([params.plot.height, 0]);
const size = d3.scaleSqrt()
.domain(d3.extent(data, d => d.words))
.range([5, width / 32]);
const color = d3.scaleOrdinal()
.domain(d3.map(data, d => d.revisionMode))
.range(["#4EA376", "#9885D5"])
return {x: x, y: y, size: size, color: color}
}