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

Announcement: DeepSeek can write ECharts code #20721

Open
helgasoft opened this issue Jan 28, 2025 · 1 comment
Open

Announcement: DeepSeek can write ECharts code #20721

helgasoft opened this issue Jan 28, 2025 · 1 comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@helgasoft
Copy link

helgasoft commented Jan 28, 2025

What problem does this feature solve?

DeepSeek seems to know a fair amount about ECharts API. It writes well-structured code and additional tips for code improvement.
Below are some examples. I added and documented some very minor code fixes where needed.
Original text answers are not included, but you could easily recreate them by using the prompts.
Hint: due to extreme interest, today 1/28/25 DeepSeek R1 servers are probably overloaded and cannot answer sometimes. Toggle off the "DeepThink R1" button (from blue to white) to use DeepSeek V3 which is sufficient for coding and seems more accessible.

Q: write ECharts code of a bar chart showing market capitalization of the ten most valuable companies
Answer Code

Image

Q: write ECharts code of a tree chart showing the hierarchy of the European Union government
Answer Code

Image

Q: write ECharts code of a globe chart mapping the latest ten largest earthquakes
Answer Code

Image

Two years ago people were trying ChatGPT to do the same (#18384). For good or bad the robots are here now 🤖

What does the proposed API look like?

just write meaningful prompts

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 28, 2025
@Ovilia
Copy link
Contributor

Ovilia commented Feb 5, 2025

This is great news. Additionally, I'm considering working on a project to generate ECharts options from Markdown Mermaid syntax. Maybe it can help generative AI generate ECharts charts better. Once I have a more detailed plan written later, discussions are welcome~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants