apache / apache/echarts

[Feature] Can I have the legend formatter accept react component instead of just string?

Open
#17,943 3 comments 0 reactions 0 assignees View on GitHub
en new-feature waiting-for: author wontfix
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

We would love to customise on legend as a react component, so that we can apply some customer styling on each different section of the `name` in legend.

### What does the proposed API look like?

Something like
```js
{
legend: {formatter: (value) =>

value
}
}
```

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.