scale = {
const x = d3
.scaleLinear()
.domain(d3.extent(data, (d) => d.danceability))
.nice()
.range([margin.left, width - margin.right]);
const y = d3
.scaleLinear()
.domain(d3.extent(data, (d) => d[Channel]))
.nice()
.range([height - margin.bottom, margin.top]);
const c = d3
.scaleLinear()
.domain(d3.extent(data, (d) => d.danceability))
.nice()
.range(["#F20505", "#024059"]);
return { x: x, y: y, c: c };
}