From b6090cdcdae4dc4f48df7e8838b0a3653712121d Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Tue, 12 Sep 2023 11:49:58 -0700 Subject: [PATCH] YlGnBu for light mode heatmap --- docs/features/transforms.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/transforms.md b/docs/features/transforms.md index 70a9df992f..b4ce33bf23 100644 --- a/docs/features/transforms.md +++ b/docs/features/transforms.md @@ -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,