Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbol支持自定义div #20680

Open
Sharang-heng opened this issue Jan 13, 2025 · 2 comments
Open

symbol支持自定义div #20680

Sharang-heng opened this issue Jan 13, 2025 · 2 comments

Comments

@Sharang-heng
Copy link

What problem does this feature solve?

image
当实现图表上方显示对应的国旗时,由于国家未知,因此想使用flag-icons国旗组件进行显示,但是查了一下
image
目前只支持图片和svg,这样每次后端返回一个新国家时都得让ui出一个国旗图片较麻烦

What does the proposed API look like?

支持传入自定义组件

@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Jan 13, 2025
Copy link

echarts-bot bot commented Jan 13, 2025

@Sharang-heng It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

Symbol supports custom divs

BODY

What problem does this feature solve?

image
When the corresponding flag is displayed above the chart, I want to use the flag-icons flag component to display it because the country is unknown, but I looked it up
image
At present, only images and SVGs are supported, so it is troublesome to have to make the UI produce a flag image every time the backend returns to a new country

What does the proposed API look like?

Custom components can be passed in

@Ovilia
Copy link
Contributor

Ovilia commented Jan 13, 2025

Symbol cannot be a div because ECharts uses canvas/svg to render the chart. You may consider using flag emojis like this demo

@Ovilia Ovilia added support waiting-for: author and removed new-feature pending We are not sure about whether this is a bug/new feature. labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants