Skip to content

Commit b6090cd

Browse files
mbostockFil
authored andcommitted
YlGnBu for light mode heatmap
1 parent 28892db commit b6090cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/features/transforms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ Plot.plot({
5151
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.
5252

5353
:::plot defer https://observablehq.com/@observablehq/plot-sorted-heatmap
54-
```js
54+
```js-vue
5555
Plot.plot({
5656
marginLeft: 120,
5757
padding: 0,
5858
y: {label: null},
59-
color: {legend: true, zero: true},
59+
color: {scheme: "{{$dark ? "turbo" : "YlGnBu"}}", legend: true, zero: true},
6060
marks: [
6161
Plot.cell(
6262
traffic,

0 commit comments

Comments
 (0)