From 4b380f695db21713c81ef732aae6cfd365ddae8a Mon Sep 17 00:00:00 2001 From: Marvin Scham Date: Tue, 23 Aug 2022 17:15:41 +0200 Subject: [PATCH] Updated colorset --- basic-example/basic-example.js | 2 +- basic-example/basic-example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basic-example/basic-example.js b/basic-example/basic-example.js index 1f9bc61..652ec15 100644 --- a/basic-example/basic-example.js +++ b/basic-example/basic-example.js @@ -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() diff --git a/basic-example/basic-example.py b/basic-example/basic-example.py index b899c7e..9483c02 100644 --- a/basic-example/basic-example.py +++ b/basic-example/basic-example.py @@ -29,7 +29,7 @@ for lang in lang_info: fn = create_proxy(lambda d, *_: d["count"]) data = d3.pie().value(fn)(to_js(lang_info_prepped)) max_val = max(lang_info_prepped, key=lambda d: d["count"])["count"] -color_scale = d3.scaleLinear().domain([0, max_val]).range(["#fafafa", "rebeccapurple"]) +color_scale = d3.scaleLinear().domain([0, max_val]).range(["azure", "teal"]) arc = ( d3.arc()