GithubHelp home page GithubHelp logo

"+" format adds a plus sign to zero about d3-format HOT 2 CLOSED

d3 avatar d3 commented on April 25, 2024
"+" format adds a plus sign to zero

from d3-format.

Comments (2)

druvisc avatar druvisc commented on April 25, 2024

On a side note for another question regarding intended behaviour. Some time ago I ran into this (leading zero for si prefix), which I wasn't expecting.

from d3-format.

mbostock avatar mbostock commented on April 25, 2024

Yes, this is the expected behavior. I’ll add a clarification to the README.

Regarding your second comment, what behavior did you expect? Your format is ,.2s, which means you’ll get two significant digits with SI-prefix formatting. Therefore 1.01 is rounded to 1.0e0 and displayed as 1.0, and 0.01 is rounded to 1.0e-2 and displayed as 10m. If you think you’ve found a bug, please file a separate issue and specify both the expected and the observed behavior in the description (along with a link to live code to reproduce the observed behavior, as you’ve done).

Also, if you want to ask for help, please use Stack Overflow tag d3.js. If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.

Thank you! 🤗

from d3-format.

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.