function slopeChart(multipleData) {
const chartSpace = d3.select(this);
const n = multipleData.visits.length;
const x = d3.scalePoint()
.domain(d3.range(n))
.range([params.multiples.margin, params.multiples.width + params.multiples.margin])
.padding(0.5);
const y = d3.scaleLinear()
.domain(sharedYExtent)
.range([params.multiples.height - params.multiples.margin, params.multiples.margin]);
const line = d3.line()
.x((d, i) => x(i))
.y(y);
const plots = chartSpace.append('g')
.selectAll('g')
.data([multipleData])
.join('g')
plots.append('path')
.attr("d", d => line(d.visits))
.attr("fill", "none")
.attr("fill-opacity", 0.5)
.attr("stroke", "#4EA376")
.attr("stroke-width", 1);
plots.append("text")
.attr("class", "cat-name")
.attr("x", params.multiples.width / 2)
.attr("y", params.multiples.height + params.multiples.margin)
.attr("text-anchor", "middle")
.style("font-size", 9)
.text(d => d.name.slice(0,3) + "…");
}