Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: ✨ Supports echarts #19

Merged
merged 1 commit into from
Feb 9, 2023
Merged

feat: ✨ Supports echarts #19

merged 1 commit into from
Feb 9, 2023

Conversation

haydenull
Copy link
Contributor

No description provided.

@haydenull
Copy link
Contributor Author

Support for displaying charts using echarts.

Example:

```echarts
{"tooltip":{"trigger":"item"},"legend":{"top":"5%","left":"center"},"series":[{"name":"Access From","type":"pie","radius":["40%","70%"],"avoidLabelOverlap":false,"itemStyle":{"borderRadius":10,"borderColor":"#fff","borderWidth":2},"label":{"show":false,"position":"center"},"emphasis":{"label":{"show":true,"fontSize":40,"fontWeight":"bold"}},"labelLine":{"show":false},"data":[{"value":1048,"name":"Search Engine"},{"value":735,"name":"Direct"},{"value":580,"name":"Email"},{"value":484,"name":"Union Ads"},{"value":300,"name":"Video Ads"}]}]}
```

image

@xyhp915 xyhp915 merged commit 5c96276 into xyhp915:main Feb 9, 2023
@sinjab
Copy link

sinjab commented Apr 2, 2023

I enabled the plugin then copied/pasted your echarts example into a logseq block but no chart appeared, just normal code block.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants