Skip to content

ECharts Bar Chart renders only currency symbol ($) when Show Value is enabled with stacked bars #38037

@mandar0324

Description

@mandar0324

Bug description

Superset version:
5.0.0

Chart type:
ECharts Bar Chart

Configuration:

  • Stacked bar
  • Show Value enabled
  • Currency prefix ($)
  • Near-zero negative values
  • Row limit: 50

Steps to reproduce:

  1. Create dataset with mostly small negative values (e.g. -1 to -5)
  2. Add one large negative outlier (e.g. -4,000,000)
  3. Create ECharts Bar Chart
  4. Enable stacked bars
  5. Enable "Show Value"
  6. Apply currency prefix ($)

Expected behavior:
Numeric values should render correctly with currency formatting (e.g., $1,234), and should not display only the currency symbol.

Actual behavior:
Only the currency symbol "$" is rendered repeatedly without numeric values, particularly for near-zero values.
Occurs in both horizontal and vertical orientation.

Image Image

warehouse_handling_dummy_data.csv

Browser:
Google Chrome 143.0.7499.193 (Official Build) (arm64)

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions