Giter Site home page Giter Site logo

labelOffset and legendSize about d3-legend HOT 8 CLOSED

susielu avatar susielu commented on June 3, 2024
labelOffset and legendSize

from d3-legend.

Comments (8)

susielu avatar susielu commented on June 3, 2024 1

Hey there @LaCroute a fix is in on v2.25.1 let me know if you have any problems with it.

from d3-legend.

susielu avatar susielu commented on June 3, 2024

It's poor wording in the documentation, it should say is the minimum offset from the shape. The expected behavior is what you see, that it aligns all of the labels vertically in the example you showed.

from d3-legend.

existe-deja avatar existe-deja commented on June 3, 2024

Ok it's clearer thanks !
Is there a way to get a constant padding with severals datasets?

from d3-legend.

susielu avatar susielu commented on June 3, 2024

hmmm could you explain more? do you mean across multiple legends? or within each cell? Like you wanted the 1 to be the same distance from the bar as the 4?

from d3-legend.

existe-deja avatar existe-deja commented on June 3, 2024

Across multiple legends sharing the same config.

What I was thinking about is to have constant space between the blue lines below.
labeloffset

from d3-legend.

susielu avatar susielu commented on June 3, 2024

I'm surprised they aren't the same, I'll take a look, it's a bug.

from d3-legend.

existe-deja avatar existe-deja commented on June 3, 2024

I'll check soon and give you updates

from d3-legend.

existe-deja avatar existe-deja commented on June 3, 2024

Great! It works like a charm

from d3-legend.

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.