Install
$ agentstack add skill-pyecharts-skills-pyecharts-viz-examples ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
pyecharts 可视化示例生成
快速开始
生成 pyecharts 图表示例的基本步骤:
- 确定图表类型 - 根据用户需求选择合适的图表类型
- 查找示例 - 从
references/chart_types.md查找对应示例代码 - 修改数据 - 根据用户数据替换示例中的测试数据
- 渲染输出 - 调用
.render()生成 HTML 文件或.render_notebook()在 Notebook 中使用
图表类型概览
详细图表类型和示例代码见 references/chart_types.md。
| 类别 | 图表数量 | 主要类型 | |------|---------|---------| | 基础图表 | 31 种 | Bar、Line、Pie、Scatter、Map、Geo、Graph、HeatMap 等 | | 复合图表 | 4 种 | Grid、Page、Tab、Timeline | | 3D 图表 | 8 种 | Bar3D、Line3D、Scatter3D、Surface3D、Map3D、MapGlobe 等 | | Echarts 6 新图表 | 6 种 | Violin、Stage、SegmentedDoughnut、Contour、BarRange、LineRange |
总计支持 49 种图表类型
核心能力
- 生成示例代码 - 提供任何图表类型的完整可运行示例
- 使用 Faker 测试数据 - 快速生成测试数据进行验证
- 图表组合 - 使用 Grid、Page、Tab、Timeline 组合多个图表
- 地图集成 - 支持中国地图、世界地图,以及百度/高德/Google/Leaflet 地图
- 输出配置 - HTML 文件、图片 (需 snapshot_selenium)、Notebook
标准图表结构
from pyecharts import options as opts
from pyecharts.charts import [图表类型]
chart = (
[ChartType]()
.add_xaxis([...]) # XY 轴图表需要
.add_yaxis("系列名", [...])
.set_global_opts(
title_opts=opts.TitleOpts(title="图表标题"),
xaxis_opts=opts.AxisOpts(),
yaxis_opts=opts.AxisOpts(),
)
)
chart.render("output.html")
常用配置项速查
全局配置 (setglobalopts)
title_opts- 标题配置legend_opts- 图例配置tooltip_opts- 提示框配置xaxis_opts/yaxis_opts- 坐标轴配置visualmap_opts- 视觉映射配置datazoom_opts- 区域缩放配置
系列配置
label_opts- 标签样式itemstyle_opts- 图形样式linestyle_opts- 线样式markpoint_opts/markline_opts- 标记点/线
输出配置
渲染为 HTML 文件
chart.render("chart.html")
渲染为图片(需要额外依赖)
from snapshot_selenium import snapshot as driver
from pyecharts.render import make_snapshot
make_snapshot(driver, chart.render(), "chart.png")
Notebook 环境
chart.render_notebook()
参考资料
- 详细图表类型和示例:
references/chart_types.md - pyecharts 官方文档: https://pyecharts.org
- 示例画廊: https://gallery.pyecharts.org
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: pyecharts
- Source: pyecharts/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.