Skip to content

Commit 7e689b1

Browse files
committed
add missing cyclical scale type
1 parent 98df362 commit 7e689b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/scales.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export type ScaleType =
2121
| "band"
2222
| "ordinal"
2323
| "sequential"
24+
| "cyclical"
2425
| "diverging"
2526
| "diverging-log"
2627
| "diverging-pow"

test/plots/seattle-temperature-amplitude.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function seattleTemperatureAmplitude() {
99
y: {label: "↑ Daily temperature variation (Δ°F)", zero: true},
1010
aspectRatio: 1,
1111
color: {
12-
scheme: "rainbow",
12+
type: "cyclical",
1313
legend: true,
1414
tickFormat: Plot.formatMonth()
1515
},

0 commit comments

Comments
 (0)