microsoft / microsoft/fluentui
[Bug]: [@fluentui/react-chart][Vertical-Bar-chart] show wrong data when the value for Y is less than 1
Open
Nobody has claimed this yet.
Fluent UI react (v8)
Help Wanted ✨
Package: charting
Resolution: Soft Close
Status: In PR
- Dominant language
- TypeScript
- Stars
- 20.3k
- Forks
- 2.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 46
Description
Library
React / v8 (@fluentui/react)
System Info
$ npx envinfo --system --npmPackages @fluentui/react-charting --browsers
npm WARN exec The following package was not found and will be installed: envinfo@7.11.0
System:
OS: Windows 11 10.0.22621
CPU: (8) x64 Intel(R) Xeon(R) W-2223 CPU @ 3.60GHz
Memory: 4.56 GB / 31.69 GB
Browsers:
Edge: Chromium (120.0.2210.91)
Internet Explorer: 11.0.22621.1
Are you reporting Accessibility issue?
None
Reproduction
/
Bug Description
Actual Behavior
fill this out
Expected Behavior
fill this out
this value for Y should be something like 0.18 but it is shown as 180m
Logs
No response
Requested priority
High
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by investigating the vertical bar chart in @fluentui/react-charting and reproduce the reported case where a Y value below 1 is displayed as 180m instead of approximately 0.18. Trace the value formatting and verify that the chart displays the expected decimal value without changing other chart values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100