You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the hexagons generated by the associated hexbin.mesh function are basically half-hexagons, which makes filling via a svg "fill" quite impossible. The use-case is to have them look just like any other hexbin.hexagon in a lot of use-cases where they need a specific color.
I removed this .slice(0,4) from the library and it seems to work properly now ,even if i'm still missing one top left side of the hexagon.
It would be great to have some support to disable this half-hexagon optimization, not only it's useful for coloring the mesh but also hexes are not cut at the edges anymore.
Here's how it looks like:
And notice how the mesh gets cut at the top left corners
The text was updated successfully, but these errors were encountered:
The mesh is optimized to allow a stroke to be added just once on each edge. In the use case you are describing, it is recommended to create a background (with rect?) below the mesh.
All the hexagons generated by the associated
hexbin.mesh
function are basically half-hexagons, which makes filling via a svg "fill" quite impossible. The use-case is to have them look just like any otherhexbin.hexagon
in a lot of use-cases where they need a specific color.I removed this .slice(0,4) from the library and it seems to work properly now ,even if i'm still missing one top left side of the hexagon.
It would be great to have some support to disable this half-hexagon optimization, not only it's useful for coloring the mesh but also hexes are not cut at the edges anymore.
Here's how it looks like:
![image](https://user-images.githubusercontent.com/6069369/188476837-659dc3c8-3fd9-4d41-96a3-2f8d6985b4af.png)
And notice how the mesh gets cut at the top left corners
![image](https://user-images.githubusercontent.com/6069369/188477118-f1422d00-743c-465e-b95e-01a1eba23e5b.png)
The text was updated successfully, but these errors were encountered: