[openstreetmap/openstreetmap-website] Increase dynamic range of contribution heatmap (Issue #5831)

Holger Jeromin notifications at github.com
Fri Mar 21 08:32:19 UTC 2025


HolgerJeromin left a comment (openstreetmap/openstreetmap-website#5831)

We can change die type to `linear` and fill the domain array with the min + max:
```ts
options.scale.color.type = 'linear';
options.scale.color.domain = [0, options.data.source.reduce((max, item) => {
    return item.total_changes > max ? item.total_changes : max;
}, 0)]
```

![Image](https://github.com/user-attachments/assets/b9898300-6fc3-477a-92ec-be0f1c6fdeab)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5831#issuecomment-2742672574
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5831/2742672574 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250321/fa5cede5/attachment.htm>


More information about the rails-dev mailing list