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/2742672...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to