Skip to content

variable color for geo lines? #1146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Fil opened this issue Dec 3, 2022 · 1 comment · Fixed by #1156
Closed

variable color for geo lines? #1146

Fil opened this issue Dec 3, 2022 · 1 comment · Fixed by #1156
Labels
enhancement New feature or request geo Maps and projections

Comments

@Fil
Copy link
Contributor

Fil commented Dec 3, 2022

(Suggested by @mbostock)

either by having a variable color for LineString (seems hard), or an option for Plot.line (or maybe a curve?) that follows spherical line interpolation.

Plot.line(beagle.coordinates, {stroke: (d, i) => i, z: null, strokeWidth: 2})
untitled (71)

SOLVED WITH curve: "projected"

@Fil Fil added enhancement New feature or request geo Maps and projections labels Dec 3, 2022
@mbostock
Copy link
Member

mbostock commented Dec 3, 2022

I like the idea of an option to Plot.line that allows spherical interpolation between points.

Fil added a commit that referenced this issue Dec 5, 2022
I haven't yet found how to avoid the special-case (we need to skip the projection and maintain spherical coordinates until the geoPath).

closes #1146
Fil added a commit that referenced this issue Dec 5, 2022
Fil added a commit that referenced this issue Dec 5, 2022
mbostock pushed a commit that referenced this issue Dec 6, 2022
mbostock added a commit that referenced this issue Dec 6, 2022
* 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]>
chaichontat pushed a commit to chaichontat/plot that referenced this issue Jan 14, 2024
* curve: "geodesic" for Plot.line

closes observablehq#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request geo Maps and projections
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants