apache / apache/echarts

[Bug] Bar chart fails to render when dataset exceeds 14 numeric values

Open
#21,243 3 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

6.0.0

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/echarts-error-with-fifteen-formatted-values-in-dataset-lsjn6k

### Steps to Reproduce

1. Open the reproduction example
2. Change the `ADD_FIFTEENTH_VALUE` variable to true

### Current Behavior

I am using a bar chart with its data sourced from a `dataset`. The `series-bar.encode.tooltip` property is used to display a formatted string value in the tooltip for each bar.

When the `dataset.source` contains 14 numeric values and their corresponding 14 formatted string values, the chart renders correctly. However, if a 15th numeric value and its formatted string as well as a 15th series are added to the source (by setting `ADD_FIFTEENTH_VALUE` to true on the example), the chart fails to render any bars at all. The chart area appears empty.

### Expected Behavior

The chart should render correctly with all 15 bars displayed, just as it does with 14.

### Environment

```markdown
- OS: Ubuntu 24.04
- Browser: Google Chrome 139.0.7258.154
- Framework:
```

### Any additional comments?

Is there any known limitation on the size of a dataset or series that would cause this behavior? I could not find any such limit in the official documentation. The number 15 seems specific, so I wanted to confirm if I missed something or if it is indeed a bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.