Skip to content

Commit b9c8d93

Browse files
committed
use theme colors
1 parent 0e673d1 commit b9c8d93

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/features/marks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,12 @@ Not all mark options can be expressed as channels. For example, **stroke** can b
363363
To vary the definition of a constant option with data, create multiple marks with your different constant options, and then filter the data for each mark to achieve the desired result.
364364
:::
365365

366-
Some options can be either a channel or a constant depending on the provided value. For example, if you set the **fill** option to *steelblue*, Plot interprets it as a literal color.
366+
Some options can be either a channel or a constant depending on the provided value. For example, if you set the **fill** option to *purple*, Plot interprets it as a literal color.
367367

368368
:::plot https://observablehq.com/@observablehq/plot-marks-have-channels
369369
```js
370370
Plot
371-
.barX(timeseries, {x: "population", y: "year", fill: "steelblue"})
371+
.barX(timeseries, {x: "population", y: "year", fill: "purple"})
372372
.plot({y: {label: null, tickFormat: ""}})
373373
```
374374
:::

docs/marks/density.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ The **density mark** shows the [estimated density](https://en.wikipedia.org/wiki
3737
Plot.plot({
3838
inset: 10,
3939
marks: [
40-
Plot.density(faithful, {x: "waiting", y: "eruptions", stroke: "steelblue", strokeWidth: 0.25}),
41-
Plot.density(faithful, {x: "waiting", y: "eruptions", stroke: "steelblue", thresholds: 4}),
40+
Plot.density(faithful, {x: "waiting", y: "eruptions", stroke: "blue", strokeWidth: 0.25}),
41+
Plot.density(faithful, {x: "waiting", y: "eruptions", stroke: "blue", thresholds: 4}),
4242
Plot.dot(faithful, {x: "waiting", y: "eruptions", fill: "currentColor", r: 1.5})
4343
]
4444
})
@@ -97,8 +97,8 @@ Plot.plot({
9797
height: 100,
9898
inset: 10,
9999
marks: [
100-
Plot.density(faithful, {x: "waiting", stroke: "steelblue", strokeWidth: 0.25, bandwidth: 10}),
101-
Plot.density(faithful, {x: "waiting", stroke: "steelblue", thresholds: 4, bandwidth: 10}),
100+
Plot.density(faithful, {x: "waiting", stroke: "blue", strokeWidth: 0.25, bandwidth: 10}),
101+
Plot.density(faithful, {x: "waiting", stroke: "blue", thresholds: 4, bandwidth: 10}),
102102
Plot.dot(faithful, {x: "waiting", fill: "currentColor", r: 1.5})
103103
]
104104
})

docs/why-plot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ You can use this composite mark like any built-in mark:
124124

125125
:::plot https://observablehq.com/@observablehq/plot-arealiney-custom-mark
126126
```js
127-
arealineY(aapl, {x: "Date", y: "Close", color: "steelblue"}).plot()
127+
arealineY(aapl, {x: "Date", y: "Close", color: "blue"}).plot()
128128
```
129129
:::
130130

0 commit comments

Comments
 (0)