You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* curve: "geodesic" for Plot.line
closes#1146
* Line handles the "sphere" curve to follow great circles on spherical projections.
* fix filtering, input normalization
* Update README
* curve: "projection"
Co-authored-by: Mike Bostock <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2836,8 +2836,9 @@ The following named curve methods are supported:
2836
2836
* *step* - a piecewise constant function where *y* changes at the midpoint of *x*
2837
2837
* *step-after* - a piecewise constant function where *y* changes after *x*
2838
2838
* *step-before* - a piecewise constant function where *x* changes after *y*
2839
+
* *projection* - use the (possibly spherical) [projection](#projection-options)
2839
2840
2840
-
If *curve* is a function, it will be invoked with a given *context* in the same fashion as a [D3 curve factory](https://github.com/d3/d3-shape/blob/main/README.md#custom-curves).
2841
+
If *curve* is a function, it will be invoked with a given *context* in the same fashion as a [D3 curve factory](https://github.com/d3/d3-shape/blob/main/README.md#custom-curves). The *projection* curve is only available for the [line mark](#line) and is typically used in conjunction with a spherical [projection](#projection-options) to interpolate along [geodesics](https://en.wikipedia.org/wiki/Geodesic).
2841
2842
2842
2843
The tension option only has an effect on bundle, cardinal and Catmull–Rom splines (*bundle*, *cardinal*, *cardinal-open*, *cardinal-closed*, *catmull-rom*, *catmull-rom-open*, and *catmull-rom-closed*). For bundle splines, it corresponds to [beta](https://github.com/d3/d3-shape/blob/main/README.md#curveBundle_beta); for cardinal splines, [tension](https://github.com/d3/d3-shape/blob/main/README.md#curveCardinal_tension); for Catmull–Rom splines, [alpha](https://github.com/d3/d3-shape/blob/main/README.md#curveCatmullRom_alpha).
0 commit comments