Skip to content

(simple) polar projection #1173

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 8, 2022 · 1 comment
Closed

(simple) polar projection #1173

Fil opened this issue Dec 8, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request geo Maps and projections

Comments

@Fil
Copy link
Contributor

Fil commented Dec 8, 2022

A stream transform that follows a polar coordinate system.

It's not an azimuthal geo projection: the main difference is when we interpolate between points to create a line. Instead of geodesics, we follow the circle (and use arc path instead of geoPath).

  • A line that goes from 0° to 270° still goes in the clockwise direction, not taking the "shortest path" by going anticlockwise.
  • The angular component of a move is along a circle centered on the origin (in spherical geo, this is identical only on the equator)

Then make Plot.area compatible with projections, and you have pie charts.

For circular bar charts and radial bar charts (category x quantity), we'll have to figure out how the projection can access the scaled categories to determine the radius (circular bar chart) or angle (radial bar chart).

cc: @tophtucker

@Fil Fil added enhancement New feature or request geo Maps and projections labels Dec 8, 2022
@Fil Fil self-assigned this Dec 8, 2022
@Fil
Copy link
Contributor Author

Fil commented Dec 10, 2022

duplicate of #133

@Fil Fil closed this as completed Dec 10, 2022
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

No branches or pull requests

1 participant