Skip to content

Commit 266bc24

Browse files
committed
Update CHANGELOG
1 parent 45fee8e commit 266bc24

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ Plot.plot({
1414
grid: true,
1515
x: {label: "Daily low temperature (°F) →", tickSpacing: 40},
1616
y: {label: "↑ Daily temperature variation (Δ°F)", tickSpacing: 40},
17-
color: {scheme: "rainbow", legend: true, tickFormat: Plot.formatMonth()},
17+
color: {scheme: "rainbow", nice: true, legend: true, tickFormat: "%b"},
1818
marks: [
1919
Plot.ruleY([0]),
20-
Plot.dot(weather, {fill: (d) => d.date.getUTCMonth(), x: "temp_min", y: (d) => d.temp_max - d.temp_min})
20+
Plot.dot(weather, {
21+
x: (d) => d.temp_min,
22+
y: (d) => d.temp_max - d.temp_min,
23+
fill: (d) => (d = new Date(d.date), d.setUTCFullYear(2020), d)
24+
})
2125
]
2226
})
2327
```

img/aspect-ratio.webp

-318 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)