Skip to content

Commit 5dac159

Browse files
committed
fix links (#1656)
1 parent bbab7e4 commit 5dac159

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

docs/features/legends.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Plot.plot({
4141

4242
The legend above is a *swatches* legend because the *color* scale is *ordinal* (with a *categorical* scheme). When the *color* scale is continuous, a *ramp* legend with a smooth gradient is generated instead. The plot below of global average surface temperature ([GISTEMP](https://data.giss.nasa.gov/gistemp/)) uses a *diverging* *color* scale to indicate the deviation from the 1951–1980 average in degrees Celsius.
4343

44-
:::plot defer https://observablehq.com/@observablehq/plot-colored-scatterplot
44+
:::plot defer https://observablehq.com/@observablehq/plot-diverging-color-scatterplot
4545
```js
4646
Plot.plot({
4747
color: {

docs/features/scales.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ Plot.plot({
435435

436436
Below we again show observed global surface temperatures. The reversed *BuRd* color scheme is used since <span :style="{borderBottom: `solid 2px ${d3.interpolateRdBu(0.9)}`}">blue</span> and <span :style="{borderBottom: `solid 2px ${d3.interpolateRdBu(0.1)}`}">red</span> are semantically associated with cold and hot, respectively.
437437

438-
:::plot https://observablehq.com/@observablehq/plot-colored-scatterplot
438+
:::plot https://observablehq.com/@observablehq/plot-diverging-color-scatterplot
439439
```js
440440
Plot.plot({
441441
grid: true,

docs/interactions/crosshair.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Plot.plot({
5151

5252
The **color** option sets the fill color of the text and the stroke color of the rule. This option can be specified as a channel to reinforce a color encoding.
5353

54-
:::plot defer https://observablehq.com/@observablehq/plot-colored-crosshair
54+
:::plot defer https://observablehq.com/@observablehq/plot-color-crosshair
5555
```js
5656
Plot.plot({
5757
marks: [

docs/marks/axis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,27 +207,27 @@ Plot.plot({
207207

208208
The color of an axis can be controlled with the **color**, **stroke**, and **fill** options, which affect the axis’ component marks differently. The **stroke** option affects the tick vector; the **fill** option affects the label texts. The **color** option is shorthand for setting both **fill** and **stroke**. While these options are typically set to constant colors (such as _red_ or the default _currentColor_), they can be specified as channels to assign colors dynamically based on the associated tick value.
209209

210-
:::plot https://observablehq.com/@observablehq/plot-colored-axes
210+
:::plot https://observablehq.com/@observablehq/plot-axes-with-color
211211
```js
212212
Plot.axisX(d3.ticks(0, 1, 10), {color: "red"}).plot() // text fill and tick stroke
213213
```
214214
:::
215215

216-
:::plot https://observablehq.com/@observablehq/plot-colored-axes
216+
:::plot https://observablehq.com/@observablehq/plot-axes-with-color
217217
```js
218218
Plot.axisX(d3.ticks(0, 1, 10), {stroke: Plot.identity, strokeWidth: 3, tickSize: 10}).plot() // tick stroke
219219
```
220220
:::
221221

222-
:::plot https://observablehq.com/@observablehq/plot-colored-axes
222+
:::plot https://observablehq.com/@observablehq/plot-axes-with-color
223223
```js
224224
Plot.axisX(d3.ticks(0, 1, 10), {fill: "red"}).plot() // text fill
225225
```
226226
:::
227227

228228
To draw an outline around the tick labels, say to improve legibility when drawing an axes atop other marks, use the **textStroke** (default _none_), **textStrokeWidth** (default 3), and **textStrokeOpacity** (default 1) options.
229229

230-
:::plot https://observablehq.com/@observablehq/plot-colored-axes
230+
:::plot https://observablehq.com/@observablehq/plot-axes-with-color
231231
```js
232232
Plot.plot({
233233
height: 40,

docs/marks/bar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ There is typically one ordinal value associated with each bar, such as a name (o
4949

5050
Above, since **y** was specified instead of **y1** and **y2**, the bar spans from zero to the given *y* value: if you only specify a single quantitative value, barY applies an implicit [stackY transform](../transforms/stack.md) and likewise barX implicitly applies stackX. The stacked horizontal bar chart below draws one bar (of unit width in **x**) per penguin, colored and sorted by the penguin’s body mass, and grouped by species along **y**.
5151

52-
:::plot defer https://observablehq.com/@observablehq/plot-colored-stacked-bar-chart
52+
:::plot defer https://observablehq.com/@observablehq/plot-stacked-unit-chart
5353
```js
5454
Plot.plot({
5555
marginLeft: 60,

docs/marks/cell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Here the *x*-scale domain contains the *id* of every episode. An ordinal scale b
116116

117117
One-dimensional cells can be a compact alternative to a bar chart, where the *fill* color of the cell replaces the length of the bar. However, position is a more salient encoding and should be preferred to color if space is available.
118118

119-
:::plot https://observablehq.com/@observablehq/plot-colored-cells
119+
:::plot https://observablehq.com/@observablehq/plot-color-cells
120120
```js
121121
Plot.cell(alphabet, {x: "letter", fill: "frequency"}).plot()
122122
```

docs/marks/dot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Plot.plot({
6969

7070
Dots support **stroke** and **fill** channels in addition to position along **x** and **y**. Below, color is used as a redundant encoding to emphasize the rising trend in average global surface temperatures. A *diverging* color scale encodes values below zero blue and above zero red.
7171

72-
:::plot defer https://observablehq.com/@observablehq/plot-colored-scatterplot
72+
:::plot defer https://observablehq.com/@observablehq/plot-diverging-color-scatterplot
7373
```js
7474
Plot.plot({
7575
y: {

docs/transforms/bin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The binX transform takes **x** as input and outputs **x1** and **x2** representi
4040

4141
While the binX transform is often used to generate **y**, it can output any channel. Below, the **fill** channel represents count per bin, resulting in a one-dimensional heatmap.
4242

43-
:::plot defer https://observablehq.com/@observablehq/plot-colored-bins
43+
:::plot defer https://observablehq.com/@observablehq/plot-color-bins
4444
```js-vue
4545
Plot
4646
.rect(olympians, Plot.binX({fill: "count"}, {x: "weight"}))

docs/why-plot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Or put more simply: **with Plot, you’ll see more charts.**
2929

3030
You can make a meaningful chart in Plot with as little as one line of code.
3131

32-
:::plot https://observablehq.com/@observablehq/plot-concise-colored-scatterplot
32+
:::plot https://observablehq.com/@observablehq/color-scatterplot
3333
```js
3434
Plot.dot(penguins, {x: "culmen_length_mm", y: "culmen_depth_mm", stroke: "species"}).plot()
3535
```
@@ -39,7 +39,7 @@ What makes Plot concise? In a word: *defaults*. If you specify the semantics—y
3939

4040
The beauty of defaults is that you can override them as needed. This is ideal for exploring: you invest minimally in the initial chart, and as you start to see something interesting, you progressively customize to improve the display. Perhaps the plot above would be easier to read with an aspect ratio proportional to the data, a grid, and a legend?
4141

42-
:::plot https://observablehq.com/@observablehq/plot-refined-colored-scatterplot
42+
:::plot https://observablehq.com/@observablehq/plot-refined-color-scatterplot
4343
```js
4444
Plot.plot({
4545
grid: true,

0 commit comments

Comments
 (0)