Skip to content

Commit

Permalink
YlGnBu for light mode heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Sep 12, 2023
1 parent e22c41e commit 72ac2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ Plot.plot({
As you might expect, traffic varies significantly throughout the day, so perhaps it would be better to look at the median by hour by location? Instead of grouping only by **y**, we can group by both **x** and **y** to produce a heatmap.

:::plot defer https://observablehq.com/@observablehq/plot-sorted-heatmap
```js
```js-vue
Plot.plot({
marginLeft: 120,
padding: 0,
y: {label: null},
color: {legend: true, zero: true},
color: {scheme: "{{$dark ? "turbo" : "YlGnBu"}}", legend: true, zero: true},
marks: [
Plot.cell(
traffic,
Expand Down

0 comments on commit 72ac2b5

Please sign in to comment.