Skip to content
Agent Workspaces
Skill

/echarts

ECharts 图表技能:根据用户需求生成高质量的 ECharts 图表配置,支持所有常见图表类型(折线图、柱状图、饼图、散点图、地图、热力图、桑基图等),提供美观的默认样式和交互配置。

From plugin
spark-agent
12125 skills

Claude Code

$ npx -y skills add alexanderizh/spark-agent --skill echarts --agent claude-code

SKILL.md

echarts.SKILL.md
name: echarts
description: "ECharts 图表技能:根据用户需求生成高质量的 ECharts 图表配置,支持所有常见图表类型(折线图、柱状图、饼图、散点图、地图、热力图、桑基图等),提供美观的默认样式和交互配置。"
version: 1.0.0
author: Spark AI
category: utility
tags: [echarts, chart, visualization, 数据可视化, 图表]

ECharts 图表助手

你是 ECharts 图表配置专家,帮助用户生成高质量、美观的 ECharts 图表配置。

图表类型选择

| 数据特征 | 推荐图表 | |----------|----------| | 趋势变化 | 折线图 (line)、面积图 (line + areaStyle) | | 分类比较 | 柱状图 (bar)、条形图 (bar 横向) | | 占比构成 | 饼图 (pie)、环形图 (pie + radius) | | 分布关系 | 散点图 (scatter)、气泡图 (scatter + symbolSize) | | 多维对比 | 雷达图 (radar) | | 层级关系 | 矩形树图 (treemap)、旭日图 (sunburst) | | 流向关系 | 桑基图 (sankey)、漏斗图 (funnel) | | 时间序列 | K线图 (candlestick) | | 地理数据 | 地图 (map)、热力地图 (heatmap + visualMap) | | 关系网络 | 关系图 (graph) |

默认样式规范

颜色方案

使用专业配色方案,默认色板:

['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc']

交互配置

  • 启用 `tooltip`:悬浮提示
  • 启用 `legend`:图例切换
  • 启用 `grid`:合理留白(top: 60, right: 40, bottom: 40, left: 60)

响应式

  • 设置 `resize` 监听
  • 使用百分比宽高或自适应容器

配置生成规则

1. **简洁优先**:只生成必要的配置项,不冗余 2. **完整可用**:确保配置可以直接使用,包含完整的 series、xAxis、yAxis 等 3. **美观默认**:应用专业的默认样式,用户无需额外调整 4. **数据驱动**:根据数据特征自动推荐图表类型 5. **中文支持**:标题、图例等默认使用中文

输出格式

生成完整的 ECharts option 配置对象,可直接传入 `echarts.setOption()`。

const option: EChartsOption = {
  // 生成的配置
}

注意事项

  • 数据量大时建议开启 `large` 模式或使用 `dataZoom`
  • 多 Y 轴时注意轴线对齐
  • 饼图数据超过 8 项时建议合并小项为"其他"
  • 始终提供合理的动画配置(animationDuration: 800)
Read more
@alexanderizh
Ships withspark-agent

面向专业开发与复杂工作的本地优先桌面 Agent 工作台:编排工作流、协作多个 Agent 会话、智能路由模型,并用自定义工具和应用扩展执行能力;每次运行可审查、可接管、可回退。 A free, local-first desktop agent workbench for professional software development and complex work.

Stars on GitHub

Momentum

stars in total
121
Star history of alexanderizh/spark-agent on GitHub, a chart by star-history.com

Other skills on spark-agent.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

gitnexus-guide

gitnexus-guide

Use when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or…

More skills from other plugins.

hud

hud

Set up, check, change, preview, or report a problem with the claude-hud status line. Use when the user mentions the HUD or status…

@jarrodwatts@jarrodwattsInstall Skill
paseo

paseo

Paseo reference for managing hosts, projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

paseo6d24k
@getpaseo@getpaseoInstall Skill
10x
Auto-invoked

10x

Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…

paradev4d16k
@superset-sh@superset-shInstall Skill

Questions about echarts.

Which coding agents can use echarts?
echarts installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.