-
Notifications
You must be signed in to change notification settings - Fork 186
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
document geo+centroid #1652
Conversation
docs/marks/geo.md
Outdated
@@ -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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
6485f3e
to
2a42af4
Compare
52bdedd
to
52e6b04
Compare
There was a problem hiding this 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>
Co-authored-by: Mike Bostock <mbostock@gmail.com>
Co-authored-by: Mike Bostock <mbostock@gmail.com>
closes #1651