plotly / plotly/react-plotly.js

How to show text for zero value in bar chart?

Open
#188 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
138
Avg merge
3d 2h
Merged PRs (30d)
4

Description

if I set the data is like below:
let data =[ {
type: "bar",
x: ['A', 'b', 'c'],
y: [null, 0, 1],
text: ['NAN', '0', '1'],
textposition: "outside",
cliponaxis: false,
}]
when it render, it doesn't show text when the value of y is null or zero.

Contributor guide

No contributing guide indexed for this repository

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

Start with the provided bar-trace reproduction using y values of null, 0, and 1, and compare the rendered labels with the text array. Trace whether this behavior belongs in react-plotly.js or its charting dependency; done means establishing how labels for null and zero values should render and documenting or testing the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.