Giter Club home page Giter Club logo

Comments (13)

brwebb avatar brwebb commented on May 27, 2024 1

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.

mbostock avatar mbostock commented on May 27, 2024

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.

mbostock avatar mbostock commented on May 27, 2024

Thanks for letting me know.

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

also experiencing just this issue. it's also hard for me to reproduce the error with the same data in a single page example.

screen shot 2016-09-29 at 5 03 18 pm

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

@brwebb do you remember how your data was sometimes incorrect?

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

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.

brwebb avatar brwebb commented on May 27, 2024

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.

micahstubbs avatar micahstubbs commented on May 27, 2024

@brwebb, thanks all the same! it looks like sparse data with lots of 0 values is the issue for me

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

@mbostock managed to make a minimal example that reproduces the issue
Voronoi clipCells() end[1] null Example II
preview

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

preview

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

it looks like this could be the cause #12

thanks to @Fil for the answer over on slack

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

for voronoi you're not allowed to have two points at the same coords

from d3-voronoi.

AlexanderBollbach avatar AlexanderBollbach commented on May 27, 2024

i'm also seeing this error in the same clipCells function. have spent many hours on this and made no progress

from d3-voronoi.

micahstubbs avatar micahstubbs commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.