Comments (2)
Sorry for the delay in replying to this pull request.
Here's what I think so far (subject to major revisions):
- Should hexbin.hexagon implement the symbol type interface? -- I don't think so since I can't imagine a situation where it would be useful in an ordinal scale like all the other symbols (if there is such a use case, let me know). As you mentioned above, converting from a size to radius might require some arithmetic that could get tricky.
- Should the hexagon method take a context? -- I'm not sure exactly what this question means, could you please clarify?
- Should the hexbin take a context? And then render like a shape? -- I feel the answers to these are yes and yes in order to maintain maximum compatibility with
d3-shape
as well as allow rendering to either SVG or Canvas web interfaces.
Would love to hear your thoughts. Also, I may be wrong on any/all of this, so please feel free to correct any errors.
from d3-hexbin.
A v3 version of d3-hexbin that takes a Canvas context here: http://bl.ocks.org/syntagmatic/002ef2fb5c1dc2df5821
My opinion is d3-hexbin shouldn't deal directly with Canvas or SVG path strings. It should output arrays of coordinates. Turning that array into a path string or a Canvas subroutine should be a convenience method or a separate utility like d3-path.
But practically since the plugin already supported SVG, adding a convenient way to render to Canvas instead would be nice. In this case, the API should be similar to d3.geoPath. A method to access the raw coordinates would still be useful.
from d3-hexbin.
Related Issues (17)
- "or as part of D3 4.0" statement in the readme does not appear to be true for d3.v4 version 4.2.7
- Inconsistency between README and global namespace
- Rounded Edges HOT 1
- Function .centers() returns only 3 items HOT 1
- Usage in ES6 import HOT 4
- bin(point)?
- implicit dependency on d3 HOT 2
- Use d3-hexbin with Angular 8 HOT 1
- Incremental binning (add and remove). HOT 1
- HexBin ordering HOT 2
- Cannot properly fill mesh hexagons HOT 3
- Row vs Column Offset Issues HOT 1
- Forced Label Layout HOT 1
- 1.0 release.
- Take d3.hexbin when available HOT 4
- Hexgrid Rotation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3-hexbin.