apache / apache/echarts

[Feature] Custom background color for bar chart

Open
#20,441 3 comments 0 reactions 0 assignees View on GitHub
en new-feature topic: bar
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

Different color for each bar's background

### What does the proposed API look like?
```javascript
backgroundStyle: {
color: (params) =>{
if (params.name === 'USA') return 'red'
return 'green'
},
borderRadius: 10,
},
```

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.