Skip to content

[charts] Add an option to put bar label on top of the bar #12975

@tejase

Description

@tejase

Summary

inclusion of an option to display numerical values directly over the bars in bar charts. Currently, bar charts are effective in visualizing comparisons between different categories or groups. However, users often require precise numerical information corresponding to each bar to accurately interpret the data. By incorporating value labels directly onto the bars, users can effortlessly determine the exact values represented by each bar without having to rely on a separate axis or additional interaction.

Motivation

By incorporating value labels directly onto the bars, users can easily and accurately determine the numerical values associated with each bar without the need for additional cognitive effort or referencing separate axes or tooltips. This feature aims to streamline the data interpretation process, improve user convenience, and empower users to derive meaningful insights from their data with greater ease and precision.

Ultimately, the goal is to enhance the overall user experience of data visualization tools, making them more intuitive, informative, and conducive to data-driven decision-making processes.

Current implementation

https://mui.com/x/react-charts/bars/#LabelsAboveBars, expectation is to simplify this implementation.

Search keywords: barchart, bar, values,

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: chartsChanges related to the charts.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions