plotly / plotly/plotly.js

make "minus sign" configurable

Open
#6,045 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

I have found commits where the current minus-sign is intentionally hardcoded as it is, and as a constant.

i don't understand the reasoning for selecting this minus sign since for example in german we would rather show the smaller minus sign "-"

d3.locale would support selecting any character as a minus sign https://github.com/d3/d3-format#formatLocale

i can try a patch if this is something you want to make configurable. and if someone can give me a pointer where such a configuration option would best be placed (locale related?)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating the hardcoded minus sign and reviewing how d3-format locale configuration is integrated; then identify where a locale-related option belongs. Done means the minus sign can be selected through configuration and the relevant formatting behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3js, javascript
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.