Comments (13)
I discovered there was a problem in an intermediate library which calls into d3. The problem was that the other library defined a callBack()
function in d3.voronoi().y(callBack)
. The callBack()
function would sometime return data that was incorrect.
Sorry for the confusion.
from d3-voronoi.
Iād like to look into this, but without a test case that reproduces the error, Iām not sure where to start.
from d3-voronoi.
Thanks for letting me know.
from d3-voronoi.
also experiencing just this issue. it's also hard for me to reproduce the error with the same data in a single page example.
from d3-voronoi.
@brwebb do you remember how your data was sometimes incorrect?
from d3-voronoi.
here's a working example with the exact data that fails in my larger project http://bl.ocks.org/micahstubbs/2e7c882e69aa10d9dc317b59baf64692
now to go figure out if something is transforming the data in the middle of the larger project before it gets to d3.voronoi() š
from d3-voronoi.
Unfortunately I don't remember the details. However, I think it had something to do with processing data points where the x or y value did not exist, maybe 0 or null.
from d3-voronoi.
@brwebb, thanks all the same! it looks like sparse data with lots of 0
values is the issue for me
from d3-voronoi.
@mbostock managed to make a minimal example that reproduces the issue
Voronoi clipCells() end[1] null Example II
this second example, though less minimal, logs out internal values from d3 to the console to perhaps shed some light on the error message
Voronoi clipCells() end[1] null Example III
from d3-voronoi.
it looks like this could be the cause #12
thanks to @Fil for the answer over on slack
from d3-voronoi.
for voronoi you're not allowed to have two points at the same coords
from d3-voronoi.
i'm also seeing this error in the same clipCells
function. have spent many hours on this and made no progress
from d3-voronoi.
@AlexanderBollbach is there a minimal example of the place you experience the error that you can share?
(nice to see others encounter this same specific issue as I did š )
from d3-voronoi.
Related Issues (20)
- New examples for 1.0.1 HOT 4
- Crash in voronoi.triangles? HOT 4
- Handle collinear (and cocircular) points? HOT 5
- Suggestion: small optimization by returning the tangent instead of the angle HOT 1
- Voronoi.find(x,y) HOT 5
- polygons() returning [null, null, null] HOT 4
- .find() throws exception when data contains two elements on the same same position
- Missing Triangle? HOT 2
- Inverse Voronoi? HOT 1
- TypeError: Cannot read property 'circle' of null HOT 6
- Feature request; polygon extent HOT 2
- d3.voronoi mutates data HOT 3
- voronoi.findAll(x,y,r) HOT 2
- voronoi.polygons crashes (runs out of memory) HOT 2
- Relation with d3-delaunay HOT 1
- Cell.js:75 Uncaught TypeError: Cannot read property '0' of null HOT 2
- voronoi.polygons will run out of memory or return incorrect polygons for certain data sets. HOT 1
- clipCells causes 'cannot read property 0 of null' HOT 6
- Incremental Voronoi?
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-voronoi.