Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Legends for Donut chart do not honor case - automatically converts to Pascal case #33389

Open
2 tasks done
kamancha1 opened this issue Dec 3, 2024 · 0 comments
Open
2 tasks done

Comments

@kamancha1
Copy link

Charting Control

DonutChart

Package version

5.13.9

React version

17.0.2

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 7.29 GB / 31.71 GB
  Browsers:
    Chrome: 131.0.6778.86
    Edge: Chromium (130.0.2849.56)
    Internet Explorer: 11.0.26100.1882

Current Behavior

Currently legends Text is automatically converted to pascal case - where each word in the legend starts with capital case.
Even if we are passing it lower case -
Eg: "Value abc" is automatically converted to "Value Abc"

This is counter-intuitive and breaks consistency with our other views.

Expected Behavior

Library should honor the case passed on the text, leaving it to the caller to decide required case.

Or at least have a way to opt out of this automatic capitalization

Reproduction

https://stackblitz.com/edit/vitejs-vite-lblzje

Steps to reproduce

  1. Create a donut chart from Fluent UI React charts
  2. Pass legends as multiple words with different casing
  3. Observe case of legends
    Image

Are you reporting an Accessibility issue?

None

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants