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

[charts] How to place bar labels after the end of the bar #15996

Open
jdferreira-biai opened this issue Dec 24, 2024 · 2 comments
Open

[charts] How to place bar labels after the end of the bar #15996

jdferreira-biai opened this issue Dec 24, 2024 · 2 comments
Labels
component: charts This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@jdferreira-biai
Copy link

jdferreira-biai commented Dec 24, 2024

The problem in depth

How can I place the bar labels after the end of the bar on an horizontal layout? Also, how can I make all the bars rounded? not only one side?

Expected result:
image

I experimented a bit with the example but I couldn't find a way to do it: https://mui.com/x/react-charts/bars/#bar-direction

Your environment

`npx @mui/envinfo`
  System:
    OS: Linux 5.15 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
  Binaries:
    Node: 21.7.3 - ~/.nvm/versions/node/v21.7.3/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v21.7.3/bin/npm
    pnpm: 9.15.1 - ~/.nvm/versions/node/v21.7.3/bin/pnpm
  Browsers:
    Edge: 131.0.2903.112
  npmPackages:
    @emotion/react: ^11.14.0 => 11.14.0 
    @emotion/styled: ^11.14.0 => 11.14.0 
    @mui/base: 5.0.0-beta.68 => 5.0.0-beta.68 
    @mui/material: ^6.3.0 => 6.3.0 
    @mui/x-charts: ^7.23.2 => 7.23.2 
    @mui/x-data-grid: ^7.23.3 => 7.23.3 
    @mui/x-data-grid-premium: ^7.23.3 => 7.23.3 
    @mui/x-date-pickers-pro: ^7.23.3 => 7.23.3 
    @mui/x-license: ^7.23.2 => 7.23.2 
    @types/react: ^18.3.17 => 18.3.17 
    react: ^18.3.1 => 18.3.1 
    react-dom: ^18.3.1 => 18.3.1 
    typescript: ^5.7.2 => 5.7.2 

Search keywords: horizontal bar layout label

Order ID: 88376

@jdferreira-biai jdferreira-biai added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: commercial Support request from paid users labels Dec 24, 2024
@github-actions github-actions bot added component: charts This is the name of the generic UI component, not the React module! support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/ labels Dec 24, 2024
@michelengelen
Copy link
Member

@JCQuintas seems like this would be an enhancement, no?

@michelengelen michelengelen changed the title [question] How to place bar labels after the end of the bar [charts] How to place bar labels after the end of the bar Dec 26, 2024
@JCQuintas JCQuintas added the enhancement This is not a bug, nor a new feature label Dec 30, 2024
@JCQuintas
Copy link
Member

@JCQuintas seems like this would be an enhancement, no?

Yes, currently not possible due to how positioning is calculated

@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: commercial Support request from paid users support: premium standard Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

3 participants