8000 Use minus sign instead of hyphen-minus by default? · Issue #62 · d3/d3-format · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Use minus sign instead of hyphen-minus by default? #62
Closed
@lucasdinonolte

Description

@lucasdinonolte

Hi there,

I really like how your library supports a lot of locales for formatting numbers.

I was wondering if there was a way to use the correct minus sign (instead of the hyphen character) for negative numbers? If not, I’d like to suggest this as an enhancement.

A bit of background: A hyphen is usually shorter than a minus and is aligned with the lowercase letters of a font (as it is used to break words across lines). A minus sign is longer (in most cases it’ll have the width of the plus sign) and is vertically aligned slightly higher (it is aligned with the figures, which in most fonts used in websites have the height of uppercase numbers). See the attached image for a comparison of plus, minus and hyphen character.

210px-plus_minus_hyphen-minus svg

Cheers and keep up the good work 🎉

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0