技能 data-visualization-tool
📊

data-visualization-tool

安全

生成数据可视化

将数据库查询结果转换为有意义的图表和图形。此技能帮助 Claude Code 用户直接在 DBX Studio 中从 SQL 查询创建柱���图、折线图、饼图等。

支持: Claude Codex Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“data-visualization-tool”。 Create a bar chart showing total revenue by product category

预期结果:

A bar chart titled 'Revenue by Product Category' with category names on X-axis and total revenue values on Y-axis

正在使用“data-visualization-tool”。 Show monthly active users trend for the past year

预期结果:

A line chart titled 'Monthly Active Users - Past 12 Months' with months on X-axis and user count on Y-axis

正在使用“data-visualization-tool”。 Display order status distribution

预期结果:

A pie chart titled 'Order Status Distribution' showing percentage of orders in each status category

安全审计

安全
v1 • 3/10/2026

All 27 static findings are false positives. The skill is a documentation file (SKILL.md) containing markdown text and SQL examples. The static analyzer incorrectly flagged markdown backticks (code formatting) as shell commands, and misinterpreted other markdown syntax as cryptographic algorithms. No actual code execution, network calls, or system access exists in this skill.

1
已扫描文件
81
分析行数
3
发现项
1
审计总数
中风险问题 (1)
Markdown Backtick False Positive
Static analyzer flagged markdown backticks (`bar`, `line`, etc.) as shell command execution. These are code formatting markers in markdown, not actual shell commands.
低风险问题 (2)
Misidentified Cryptographic Patterns
Static analyzer flagged text patterns as weak cryptographic algorithms. No cryptographic code exists in this file.
Misidentified System Reconnaissance
Static analyzer flagged line 79 as system reconnaissance. Line 79 contains design guidance about aggregation, not reconnaissance code.
审计者: claude

质量评分

38
架构
100
可维护性
85
内容
22
社区
96
安全
91
规范符合性

你能构建什么

分析销售趋势

根据订单数据创建显示收入随时间变化的折线图

比较类别表现

构建柱状图以比较各产品类别的指标

显示数据分布

生成直方图以了解数据分布和异常值

试试这些提示

基础柱状图
Create a bar chart showing [metric] by [category] from the [table] table
时间序列折线图
Show the trend of [metric] over time using a line chart for the last [time_period]
比例饼图
Create a pie chart showing the breakdown of [column] as percentages
相关性散点图
Generate a scatter plot comparing [x_metric] versus [y_metric] to see the relationship

最佳实践

  • 始终使用描述性的图表标题,并在相关时包含时间段
  • 保持坐标轴标签可读,而非使用原始列名
  • 在绘图前聚合数据以避免显示原始行级别数据

避免

  • 使用超过 7 个分区的饼图会使数据难以阅读
  • 对于时间序列数据,当折线图更清晰时使用柱状图
  • 不设置有意义的���题会导致图表输出令人困惑

常见问题

显示随时间变化的趋势应该使用什么图表类型?
使用折线图来显示随时间变化的趋势。当您提及'trend'或'over time'等词时,该技能会自动建议使用折线图。
我可以从任何 SQL 查询创建图表吗?
可以,只要您的查询返回的数据包含配置 x 轴和 y 轴所需的列。
为什么饼图限制为 7 个分区?
饼图在超过 7 个分区时变得难以阅读。对于较大的数据集,该技能建议将其余部分分组为'Other'。
如何选择柱状图和饼图?
使用柱状图进行比较,使用饼图显示部分与整体的关系。该技能为常见场景提供了指南。
我可以自定义图表颜色和样式吗?
该技能专注于数据选择和图表类型。颜色和样式由 DBX Studio 可视化组件处理。
如果查询返回的行太多怎么办?
在绘图前,请在 SQL 查询中聚合数据。使用 GROUP BY 和 LIMIT 将结果集减少到可管理的大小。

开发者详情

文件结构

📄 SKILL.md