SGDS 数据可视化

SKILL研究检索

原名 sgds-data-visualisation

研究检索 联网访问 许可证不明确 CodexClaudeCursorGemini CLI
安装这个技能

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

累计安装 1,175 本周 48
GitHub 星标 12 仓库 sgds-web-component
下载量 380 技能市场下载数
权限级别 联网访问 安装前请确认风险范围
许可证 许可证不明确 unknown

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
npx skills add https://github.com/govtechsg/sgds-web-component --skill sgds-data-visualisation

技能档案

研究检索
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方govtechsg仓库 sgds-web-component · 版本 未标注
宿主客户端Codex、Claude、Cursor、Gemini CLI技能可被这些客户端加载
安装方式GitHub 仓库安装包 govtechsg/sgds-web-component
权限级别联网访问安装前请确认风险范围
许可证unknown许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-05-01上游最后核验时间 · 数据更新 未标注
正文体量2.6 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

4 项能力
上游给出的能力概览与适用场景
  • 按任务关键词查找相关 Skills
  • 展示可复制的安装命令
  • 保留来源站点、仓库和原始说明,方便继续核验
  • 展示第三方安全扫描或审计结果
用户想查找某类 Agent Skill 时需要根据任务场景推荐可安装能力包时需要对比不同来源的安装命令和来源信息时

权限与风险

联网访问
装之前先读完这段

安装与使用指南

安装步骤

本站只展示命令,不托管安装包,也不自动执行。

怎么用

安装后应在对应宿主中按原始 README 的触发条件使用;当前草稿只做目录说明,具体调用方式由规则抽取,异常条目再复核。

SKILL.md 全文

2.6 KB
模型实际读到的说明书原文,来自技能仓库

SGDS Data Visualisation Pattern

SGDS does not bundle a charting library. For data visualisation, use Apache ECharts and apply the SGDS colour palette so charts remain visually consistent with your design system.


Prerequisites


Installing ECharts

ECharts is not included in @govtechsg/sgds-web-component. Install it separately:

npm install echarts

Then import and initialise per the ECharts getting started guide:

import * as echarts from "echarts";

const chart = echarts.init(document.getElementById("chart"));
chart.setOption(option);

SGDS Colour Palette for ECharts

Apply the SGDS palette by setting the color array in your chart option. The values below are the raw hex values of the SGDS data-visualisation primitive tokens:

Token Hex
--sgds-purple-600 #ac1cdb
--sgds-cyan-600 #00758d
--sgds-green-600 #0e7c3d
--sgds-blue-600 #0269d0
--sgds-yellow-600 #7e6917

Per-chart (recommended)

Set color directly in the chart option. ECharts cycles through the colours sequentially across series:

const option = {
  color: ["#ac1cdb", "#00758d", "#0e7c3d", "#0269d0", "#7e6917"],
  // ... rest of chart option
};

Global theme (all charts on the page)

Register a named theme once at app startup, then pass the theme name when initialising each chart:

import * as echarts from "echarts";

echarts.registerTheme("sgds", {
  color: ["#ac1cdb", "#00758d", "#0e7c3d", "#0269d0", "#7e6917"],
});

const chart = echarts.init(document.getElementById("chart"), "sgds");

For AI Agents

  1. ECharts is not provided by SGDS — always tell users to install it separately from https://echarts.apache.org/.
  2. The five SGDS palette colours are fixed hex values taken from the primitive tokens. Do not reference CSS variables inside the ECharts color array — ECharts does not resolve CSS custom properties.
  3. For a single chart, set color in the option object. For multiple charts sharing the same palette, use echarts.registerTheme() once at app startup.
  4. Palette order: purple → cyan → green → blue → yellow. ECharts cycles through them automatically across series.

安全信息

审计结论
未标注不代表已通过审计
安全审计Gen Agent Trust Hub、Socket、Snyk第三方安全审计平台给出的结论

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-05-01。