hexbin#740
Conversation
…ll channel; this solution creates a shared Y between facets (attached to the channels object).
cleaner API (Plot.hex is the shortcut, and Plot.hexbin the options transform)
|
Status: everything seems to work, I'm particularly happy with the color reducers (for example a hex can have a fill: min, stroke: max, title: "proportion-reduce"). However, I don't like the quantity of messy code I had to put in the layout logic to derive the new indices (in part because of the "one call per facet" logic), and deal with the new and updated/rescaled data, which sometimes wants to create new scales. There are several cases to consider (for example, when applying a fill: min reducer, we need to make sure that fill is not scaled before it's reduced), and I think there must be a simpler approach that I'm failing to see. (Also, by way of consequence, it's hard to merge this branch with main.) I'll pause here for a moment. |
|
Superseded by #775. |
demo: https://observablehq.com/@observablehq/plot-hexbin-740