Giter Site home page Giter Site logo

Comments (5)

gabrielflorit avatar gabrielflorit commented on August 24, 2024

@ColinEberhardt how does your implementation differ from this one?

from d3-labeler.

ColinEberhardt avatar ColinEberhardt commented on August 24, 2024

@gabrielflorit it doesn't differ all that much. As mentioned about D3-Labeler looks pretty good, but is inactive.

Probably the biggest difference is that d3fc-label-layout allows you to plug in different strategies.

from d3-labeler.

gabrielflorit avatar gabrielflorit commented on August 24, 2024

good to know, thanks @ColinEberhardt

from d3-labeler.

akaleeroy avatar akaleeroy commented on August 24, 2024

@ColinEberhardt @gabrielflorit One way it differs is d3fc-label-layout doesn't avoid label-anchor overlaps! Sometimes fc.layoutAnnealing() doesn't even seem to avoid label-label overlaps. Not what it says on the tin.

I found d3fc-label-layout easier to adapt for laying out labels for places on a GeoJSON map, but I'll try to get D3-Labeler working and see if I get better results, since the demo never produces overlaps.


Well, I tried D3-Labeler, but couldn't get it to produce a flawless layout: https://bl.ocks.org/akaleeroy/ab24b8b3185487fa90b5448154ed5bf7
Now I'm hoping bringing d3-cola into the mix might help, but that's a stretch since it's not built for labeling so doesn't account for the proximity to anchor directive.

from d3-labeler.

curran avatar curran commented on August 24, 2024

Updated link to d3fc implementation:
https://github.com/d3fc/d3fc/blob/master/packages/d3fc-label-layout/README.md

from d3-labeler.

Related Issues (7)

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.