Skip to content

document geo+centroid #1652

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

Merged
merged 7 commits into from
Jun 26, 2023
Merged

document geo+centroid #1652

merged 7 commits into from
Jun 26, 2023

Conversation

Fil
Copy link
Contributor

@Fil Fil commented May 29, 2023

closes #1651

@Fil Fil requested a review from mbostock May 29, 2023 09:52
@@ -128,6 +128,8 @@ Plot.plot({
```
:::

The geo mark doesn’t have **x** and **y** channels; to derive those, for example to add [interactive tips](https://observablehq.com/@observablehq/plot-maps-tips), you can apply a [centroid transform](../transforms/centroid.md) on the geometries.
Copy link
Member

@mbostock mbostock May 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to include an example of centroid + text for geo labels here, and to link to the tip mark documentation rather than the example notebook, since the tip mark documentation includes that example, plus a lot more information about “interactive tips”.

Alternatively maybe it would be better to replace that (somewhat odd!) “counties beginning with V” example in the centroid docs, and just label the states instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed; I additionally copied the (same) interactive tip example to the centroid page.

@Fil Fil requested a review from mbostock May 31, 2023 13:05
@Fil Fil force-pushed the fil/document-geo-centroid branch from 6485f3e to 2a42af4 Compare May 31, 2023 13:08
@Fil Fil enabled auto-merge (squash) May 31, 2023 13:11
@Fil Fil force-pushed the fil/document-geo-centroid branch from 52bdedd to 52e6b04 Compare May 31, 2023 13:13
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good other than the one grammatical nit. Thanks!

Co-authored-by: Mike Bostock <mbostock@gmail.com>
@Fil Fil merged commit 634c8dd into main Jun 26, 2023
@Fil Fil deleted the fil/document-geo-centroid branch June 26, 2023 19:02
Fil added a commit that referenced this pull request Aug 21, 2023
Co-authored-by: Mike Bostock <mbostock@gmail.com>
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
Co-authored-by: Mike Bostock <mbostock@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The geo mark should mention the centroid transform
2 participants