Skip to content

Commit 0d3a4dd

Browse files
committed
link to d3js.org
1 parent cfb3d74 commit 0d3a4dd

File tree

9 files changed

+28
-26
lines changed

9 files changed

+28
-26
lines changed

CHANGELOG-2022.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Plot.plot({
121121
})
122122
```
123123

124-
In addition to the included basic projections, Plot’s projection system can be extended using any projection implementation compatible with D3’s [projection stream interface](https://github.com/d3/d3-geo/blob/main/README.md#streams). This includes all the projections provided by the [d3-geo-projection](https://github.com/d3/d3-geo-projection) and [d3-geo-polygon](https://github.com/d3/d3-geo-polygon) libraries! For example, here is a world map using Goode’s interrupted homolosine projection.
124+
In addition to the included basic projections, Plot’s projection system can be extended using any projection implementation compatible with D3’s [projection stream interface](https://d3js.org/d3-geo/stream). This includes all the projections provided by the [d3-geo-projection](https://github.com/d3/d3-geo-projection) and [d3-geo-polygon](https://github.com/d3/d3-geo-polygon) libraries! For example, here is a world map using Goode’s interrupted homolosine projection.
125125

126126
[<img src="./img/goode.png" width="640" alt="A world map using Goode’s interrupted homolosine projection">](https://observablehq.com/@observablehq/plot-extended-projections)
127127

@@ -583,7 +583,7 @@ Plot.vector((T => d3.cross(T, T))(d3.ticks(0, 2 * Math.PI, 20)), {
583583
})
584584
```
585585

586-
The [dot mark](./README.md#dot) now supports a *symbol* option to control the displayed shape, which defaults to *circle*. The *symbol* channel (and associated *symbol* scale) can also be used as an categorical encoding. The default symbol set is based on whether symbols are stroked or filled, improving differentiability and giving uniform weight. Plot supports all of D3’s built-in symbol types: *circle*, *cross*, *diamond*, *square*, *star*, *triangle*, and *wye* (for fill) and *circle*, *plus*, *times*, *triangle2*, *asterisk*, *square2*, and *diamond2* (for stroke, based on [Heman Robinson’s research](https://www.tandfonline.com/doi/abs/10.1080/10618600.2019.1637746)); you can also implement a [custom symbol type](https://github.com/d3/d3-shape/blob/main/README.md#custom-symbol-types).
586+
The [dot mark](./README.md#dot) now supports a *symbol* option to control the displayed shape, which defaults to *circle*. The *symbol* channel (and associated *symbol* scale) can also be used as an categorical encoding. The default symbol set is based on whether symbols are stroked or filled, improving differentiability and giving uniform weight. Plot supports all of D3’s built-in symbol types: *circle*, *cross*, *diamond*, *square*, *star*, *triangle*, and *wye* (for fill) and *circle*, *plus*, *times*, *triangle2*, *asterisk*, *square2*, and *diamond2* (for stroke, based on [Heman Robinson’s research](https://www.tandfonline.com/doi/abs/10.1080/10618600.2019.1637746)); you can also implement a [custom symbol type](https://d3js.org/d3-shape/symbol#custom-symbols).
587587

588588
[<img src="./img/symbol.png" width="660" alt="a scatterplot of penguins by mass and flipper length">](https://observablehq.com/@observablehq/plot-dot)
589589

src/curve.d.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ export interface CurveOptions extends CurveAutoOptions {
5656
* * *step-before* - a piecewise constant function where *x* changes after *y*
5757
*
5858
* If *curve* is a function, it will be invoked with a given CanvasPath
59-
* *context* in the same fashion as a [D3 curve
60-
* factory](https://github.com/d3/d3-shape/blob/main/README.md#custom-curves).
59+
* *context* in the same fashion as a [D3 curve factory][1].
60+
*
61+
* [1]: https://d3js.org/d3-shape/curve#custom-curves
6162
*/
6263
curve?: Curve;
6364
}
@@ -92,21 +93,22 @@ export interface CurveAutoOptions {
9293
* The *auto* curve is typically used in conjunction with a spherical
9394
* projection to interpolate along geodesics. If *curve* is a function, it
9495
* will be invoked with a given CanvasPath *context* in the same fashion as a
95-
* [D3 curve
96-
* factory](https://github.com/d3/d3-shape/blob/main/README.md#custom-curves).
96+
* [D3 curve factory][1].
97+
*
98+
* [1]: https://d3js.org/d3-shape/curve#custom-curves
9799
*/
98100
curve?: Curve | "auto";
99101

100102
/**
101103
* The tension option only has an effect on bundle, cardinal and Catmull–Rom
102104
* splines (*bundle*, *cardinal*, *cardinal-open*, *cardinal-closed*,
103105
* *catmull-rom*, *catmull-rom-open*, and *catmull-rom-closed*). For bundle
104-
* splines, it corresponds to
105-
* [beta](https://github.com/d3/d3-shape/blob/main/README.md#curveBundle_beta);
106-
* for cardinal splines,
107-
* [tension](https://github.com/d3/d3-shape/blob/main/README.md#curveCardinal_tension);
108-
* for Catmull–Rom splines,
109-
* [alpha](https://github.com/d3/d3-shape/blob/main/README.md#curveCatmullRom_alpha).
106+
* splines, it corresponds to [beta][1]; for cardinal splines, [tension][2];
107+
* for Catmull–Rom splines, [alpha][3].
108+
*
109+
* [1]: https://d3js.org/d3-shape/curve#curveBundle_beta
110+
* [2]: https://d3js.org/d3-shape/curve#curveCardinal_tension
111+
* [3]: https://d3js.org/d3-shape/curve#curveCatmullRom_alpha
110112
*/
111113
tension?: number;
112114
}

src/legends.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export interface LegendOptions {
2323
* domain is dates, the tick format may also be expressed as a [d3-time-format
2424
* string][2].
2525
*
26-
* [1]: https://github.com/d3/d3-format/blob/main/README.md#locale_format
27-
* [2]: https://github.com/d3/d3-time-format/blob/main/README.md#locale_format
26+
* [1]: https://d3js.org/d3-format#locale_format
27+
* [2]: https://d3js.org/d3-time-format#locale_format
2828
*/
2929
tickFormat?: ScaleOptions["tickFormat"];
3030

src/marks/geo.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function sphere(options?: GeoOptions): Geo;
5353
* a spherical **projection** only.) For more control, use [d3.geoGraticule][1]
5454
* with the geo mark.
5555
*
56-
* [1]: https://github.com/d3/d3-geo/blob/main/README.md#geoGraticule
56+
* [1]: https://d3js.org/d3-geo/shape#geoGraticule
5757
*/
5858
export function graticule(options?: GeoOptions): Geo;
5959

src/marks/raster.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export const interpolateNone: RasterInterpolateFunction;
209209
* congruential generator][2] with a fixed seed (for deterministic results).
210210
*
211211
* [1]: https://en.wikipedia.org/wiki/Barycentric_coordinate_system
212-
* [2]: https://github.com/d3/d3-random/blob/main/README.md#randomLcg
212+
* [2]: https://d3js.org/d3-random#randomLcg
213213
*/
214214
export function interpolatorBarycentric(options?: {random?: RandomSource}): RasterInterpolateFunction;
215215

src/marks/tree.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface TreeOptions extends DotOptions, LinkOptions, TextOptions, TreeT
3939
* slash by default); then executes a tree layout algorithm, by default
4040
* [Reingold–Tilford’s “tidy” algorithm][1].
4141
*
42-
* [1]: https://github.com/d3/d3-hierarchy/blob/main/README.md#tree
42+
* [1]: https://d3js.org/d3-hierarchy/tree
4343
*/
4444
export function tree(data?: Data, options?: TreeOptions): CompoundMark;
4545

@@ -51,6 +51,6 @@ export function tree(data?: Data, options?: TreeOptions): CompoundMark;
5151
* Plot.tree(data, {...options, treeLayout: d3.cluster, textLayout: "mirrored"})
5252
* ```
5353
*
54-
* [1]: https://github.com/d3/d3-hierarchy/blob/main/README.md#cluster
54+
* [1]: https://d3js.org/d3-hierarchy/cluster
5555
*/
5656
export function cluster(data?: Data, options?: TreeOptions): CompoundMark;

src/projection.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ export interface ProjectionOptions extends InsetOptions {
8585
/**
8686
* The [standard parallels][1]. For conic projections only.
8787
*
88-
* [1]: https://github.com/d3/d3-geo/blob/main/README.md#conic_parallels
88+
* [1]: https://d3js.org/d3-geo/conic#conic_parallels
8989
*/
9090
parallels?: [y1: number, y2: number];
9191

9292
/**
9393
* The projection’s [sampling threshold][1].
9494
*
95-
* [1]: https://github.com/d3/d3-geo/blob/main/README.md#projection_precision
95+
* [1]: https://d3js.org/d3-geo/projection#projection_precision
9696
*/
9797
precision?: number;
9898

src/transforms/bin.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export type ThresholdsFunction<T = any> = (values: T[], min: T, max: T) => Range
4242
* built-in thresholds implementations, [d3.ticks][1] is used for numeric
4343
* domains and [d3.utcTicks][2] is used for temporal domains.
4444
*
45-
* [1]: https://github.com/d3/d3-array/blob/main/README.md#ticks
46-
* [2]: https://github.com/d3/d3-time/blob/main/README.md#utcTicks
45+
* [1]: https://d3js.org/d3-array/ticks
46+
* [2]: https://d3js.org/d3-time#utcTicks
4747
*/
4848
export type Thresholds<T = any> = ThresholdsName | ThresholdsFunction<T> | RangeInterval<T> | T[] | number;
4949

src/transforms/tree.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export interface TreeTransformOptions {
3232
* Reingold–Tilford “tidy” algorithm. Use [d3.cluster][2] instead to align
3333
* leaf nodes; see also Plot.cluster.
3434
*
35-
* [1]: https://github.com/d3/d3-hierarchy/blob/main/README.md#tree
36-
* [2]: https://github.com/d3/d3-hierarchy/blob/main/README.md#cluster
35+
* [1]: https://d3js.org/d3-hierarchy/tree
36+
* [2]: https://d3js.org/d3-hierarchy/cluster
3737
*/
3838
treeLayout?: () => any;
3939

@@ -44,7 +44,7 @@ export interface TreeTransformOptions {
4444
* in the hierarchy and returns the desired (relative) amount of separation;
4545
* see [d3-hierarchy’s _tree_.separation][1] for more.
4646
*
47-
* [1]: https://github.com/d3/d3-hierarchy/blob/main/README.md#tree_separation
47+
* [1]: https://d3js.org/d3-hierarchy/tree#tree_separation
4848
*/
4949
treeSeparation?: CompareFunction | null;
5050

@@ -58,7 +58,7 @@ export interface TreeTransformOptions {
5858
* node value such as *node:name*.
5959
*
6060
* [1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
61-
* [2]: https://github.com/d3/d3-hierarchy/blob/main/README.md#node_sort
61+
* [2]: https://d3js.org/d3-hierarchy/hierarchy#node_sort
6262
*/
6363
treeSort?: CompareFunction | {node: (node: any) => any} | string | null;
6464
}

0 commit comments

Comments
 (0)