Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Hexbin Series#926

Merged
mcnuttandrew merged 4 commits intouber:masterfrom
mcnuttandrew:hex-series
Aug 31, 2018
Merged

Hexbin Series#926
mcnuttandrew merged 4 commits intouber:masterfrom
mcnuttandrew:hex-series

Conversation

@mcnuttandrew
Copy link
Contributor

hexbin series

This PR introduces a hexbin series. It is a little different than previous heatmap series that we provide in that the aggregation (though we could staple similar methods into the main heatmap series) is executed on the series level rather than being provided by the user. I think this is a valuable series to add as it might be difficult for users to do otherwise, it also sits well with the uh hexagonal branding that's in the air these days.

In the current state I have not yet written docs as I am not 100% sure about the API. I'd love to hear any feedback

@mcnuttandrew mcnuttandrew requested review from benshope and jckr August 21, 2018 20:58
Copy link
Contributor

@benshope benshope 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 to me! At first glance it seems like there are three things that a user might want to be able to edit on this visualization - the radius, the color scale, and the x/y offset of the hexes. It seems like you have given the user access to those properties - although I'm not sure about x/y offset?

The reason I ask is because I could see users wanting to shift the hex placement to peer around the minor distortions this makes to their data.

It would be awesome to have a color example. Overall it looks very cool.

{hexes.map((d, i) => {
const attrs = {
style: {
...style
Copy link
Contributor

Choose a reason for hiding this comment

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

could probably skip this destructure

@benshope benshope requested a review from nrabinowitz August 27, 2018 17:04
@benshope
Copy link
Contributor

Just chatted with @nrabinowitz because he knows his hexagons and he's going to take a look

@mcnuttandrew
Copy link
Contributor Author

updated-hexes

Added docs and binning with sizing, built another example (that's pretty fun to play with tbh) and addressed @benshope 's comments. Still interested to hear comments obv

Copy link
Contributor

@benshope benshope left a comment

Choose a reason for hiding this comment

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

Those examples look awesome! At second glance this still looks like reasonably simple, easy-to-understand API for the component. Stamping.

@mcnuttandrew mcnuttandrew merged commit 9ec0f4d into uber:master Aug 31, 2018
@mcnuttandrew mcnuttandrew deleted the hex-series branch September 23, 2018 16:14
ayarcohaila pushed a commit to ayarcohaila/react-vis that referenced this pull request Jun 30, 2021
* Hexbin Series

* fix tests

* add docs and size hexbinning

* add offsets
ayarcohaila added a commit to ayarcohaila/react-vis that referenced this pull request May 30, 2023
* Hexbin Series

* fix tests

* add docs and size hexbinning

* add offsets
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.

2 participants