Skip to content

bug(Bar Chart): Stacked bar chart's ShowDataLabel has overlapping text #8196

Description

@carden-steven

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When ShowDataLabel is set to true for a stacked bar chart, if a bar has two segments, with one segment having a value of "0", it prints both the nonzero and 0 text labels overlapping each other so they are impossible to read.

Expected Behavior

Don't print the value labels for segments with "0" values.

Interactive render mode

Interactive Server (Interactive server-side rendering (interactive SSR) using Blazor Server)

Steps To Reproduce

  1. Create a Bar Chart and set Stacked to true.
  2. Add a DataSource with ShowDataLabel set to true. Make one of the columns have its topmost segment with a "0" value.
  3. View the chart and see that the "0" DataLabel overlaps the lower segment's DataLabel.

Exceptions (if any)

No response

.NET Version

NET9.0

Anything else?

Bob's bar shows the bug:
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions