[BUG] [REGRESSION]: `tickprefix`/`ticksuffix` ignored when `tickvals` provided
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- data-visualization
Research direction
Start by reproducing the linked CodePen with plotly.js v2.29.1 and v2.30.0, using tickvals together with tickprefix and ticksuffix. Trace the axis tick-label formatting path and locate the relevant regression test area. Done means both prefixes and suffixes render with explicitly provided tick values, with coverage for the regression.
Written by the indexing model from the issue text.
Description
Codepen: https://codepen.io/emilykl-code/pen/jEBbzvL
In plotly.js v2.29.1 and earlier, tickprefix and ticksuffix would be applied as expected when tick values were provided with tickvals:
However starting with v2.30.0 and continuing to the latest v4.0.0, suddenly tickprefix and ticksuffix are ignored when tickvals is passed:
There's no reason why tickprefix/ticksuffix can't coexist with tickvals, so this should be fixed.
This bug was also noticed in plotly.py issues https://github.com/plotly/plotly.py/issues/4041, https://github.com/plotly/plotly.py/issues/4678
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 21
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/plotly.js
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
chore P3 plotly-internal size: 3 task
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
chore P1 plotly-internal size: 1 task
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
chore P3 plotly-internal size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
plotly/plotly.js#7648 · 3 comments ·
Maintainers usually reply within 1 day
All issues in plotly/plotly.js
Similar issues
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
jaegertracing/jaeger-ui#4512 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#3857 ·
Maintainers usually reply within 2 days
-
area-clientside-dartpad
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
quarkusio/extensions#3432 ·
Maintainers usually reply within 1 day