Open wdibi opened 3 years ago
Hi @wdibi - Thanks so much for the contribution.
d3....feels like a pretty heavy hammer for this - It adds about 260k of download and adds a hard dependency on a third-party site, which is something we've tried hard to avoid up to now. I think I'd be happier pulling a single calculation function into app.js
Hey @obra, I can implement a similar solution with chroma.js. Thoughts on its size? https://bundlephobia.com/result?p=chroma-js@2.1.0
@wdibi It -looks- like https://stackoverflow.com/a/63775249 should do what we want. Wanna give it a shot with that?
@obra Sure, I will take a look.
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/skalnik/aqi-wtf/pe62s24yf
✅ Preview: https://aqi-wtf-git-fork-wdibi-feature-aqi-color-scale.skalnik.vercel.app