Palettes
Color palettes
Categorical schemes color discrete series. Sequential ramps encode continuous fill. Chart themes style paper and chrome separately — see Themes.
Scheme names as scale inputs: Palettes reference. How to set a palette on a plot: Scale reference (e.g. ScaleColorDiscrete, ScaleColorContinuous). Narrative guide: Scales and guides.
Categorical
Palettes
Ipsum
9 colorsFlexoki
8 colorsTableau 10
10 colorsColorblind
8 colorsStata
15 colorsStata S1 Color
15 colorsStata S1R Color
15 colorsStata Mono
15 colorsEconomist
9 colorsSolarized
8 colorsFew
8 colorsFew Light
8 colorsFew Dark
8 colorsFiveThirtyEight
3 colorsPaul Tol
12 colorsCanva
4 colorsWSJ
6 colorsWSJ R/G/B/Y
4 colorsWSJ Red/Green
2 colorsWSJ Black/Green
4 colorsWSJ Dem/Rep
3 colorsTableau 20
20 colorsTableau Color Blind
10 colorsSeattle Grays
5 colorsTraffic
9 colorsMiller Stone
11 colorsSuperfishel Stone
10 colorsNuriel Stone
9 colorsJewel Bright
9 colorsSummer
8 colorsWinter
10 colorsGreen/Orange/Teal
12 colorsRed/Blue/Brown
12 colorsPurple/Pink/Gray
12 colorsHue Circle
19 colorsGoogle Docs
24 colorsHighcharts
10 colorsHighcharts Dark
11 colorsPander
8 colorsCalc
12 colorsExcel
7 colorsExcel Fill
7 colorsExcel New
6 colorsSet1
9 colorsSet2
8 colorsSet3
12 colorsDark2
8 colorsPaired
12 colorsAccent
8 colorsHue
10 colorsGrey
10 colors
Sequential
Ramps
Continuous fill on a Macdonell man-count grid. Reverse, custom range, and pinned domain should read clearly on the colorbar — not only on a few cells.
Viridis
Reversed
Custom range
Pinned domain
Authoring fragment
<script lang="ts">
import { GeomRaster, GGPlot, Labs, Scale } from "@ggsvelte/svelte";
// Macdonell man-count grid (48 cells in the live demos).
const grid = [
{ x: 0, y: 0, z: 12 },
{ x: 1, y: 0, z: 28 },
{ x: 2, y: 0, z: 41 },
// …
];
</script>
<GGPlot
data={grid}
aes={{ x: "x", y: "y", fill: "z" }}
height={400}
>
<Scale
value={{
fill: { type: "sequential", scheme: "viridis" },
// reverse: true
// domain: [15, 40] // pin inside actual man counts
// range: ["#2d1e2f", "#3d5a80", "#e76f51"]
}}
/>
<Labs title="Macdonell stature × finger counts" x="Finger index" y="Height index" />
<GeomRaster />
</GGPlot>