Updated colorset

This commit is contained in:
2022-08-23 17:15:41 +02:00
parent bacf60b8b5
commit 4b380f695d
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ fetch(url)
const fn = (d) => d.count;
const data = d3.pie().value(fn)(langInfoPrepped);
const maxVal = d3.max(data, function (d) { return d.value; });
const colorScale = d3.scaleLinear().domain([0, maxVal]).range(["#fafafa", "rebeccapurple"]);
const colorScale = d3.scaleLinear().domain([0, maxVal]).range(["azure", "teal"]);
const arc = d3
.arc()