[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)

Holger Jeromin notifications at github.com
Tue Jan 21 07:50:43 UTC 2025


@HolgerJeromin commented on this pull request.



> +        gutter: 4
+      },
+      date: {
+        start: startDate
+      },
+      range: 13,
+      data: {
+        source: heatmapData,
+        type: "json",
+        x: "date",
+        y: "total_changes"
+      },
+      scale: {
+        color: {
+          type: "threshold",
+          range: currentTheme === "dark" ? rangeColors : rangeColors.reverse(),

```suggestion
          range: currentTheme === "dark" ? rangeColors : Array.from(rangeColors).reverse(),
```
would solve that.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5402/review/2563713378 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250120/23941659/attachment.htm>


More information about the rails-dev mailing list