[openstreetmap/openstreetmap-website] Change heatmap color to linear from 0 to max changes (PR #5833)

Holger Jeromin notifications at github.com
Fri Mar 21 09:56:35 UTC 2025


@HolgerJeromin commented on this pull request.



> +          domain: [0, heatmapData.reduce((max, item) => {
+            return item.total_changes > max ? item.total_changes : max;
+          }, 0)]

I was not was not awake enough to fiddle myself something and trusted copilot to find something smart. :-(
Thanks for your input!
Changed to something similar like your suggestion.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5833#discussion_r2007234870
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5833/review/2705355577 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250321/1b28edd3/attachment.htm>


More information about the rails-dev mailing list