← 返回 Skills 市场
rishabhdugar

Generate Chart

作者 Rishabh Dugar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
69
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install generate-chart
功能描述
Generate a chart image using Chart.js. Supports line, bar, pie, doughnut, radar, polarArea, bubble, and scatter chart types.
使用说明 (SKILL.md)

Generate Chart

What It Does

Creates a chart image using the Chart.js library. Supports bar, line, pie, doughnut, radar, polarArea, bubble, and scatter chart types with full Chart.js data and options configuration.

When to Use

  • Generate data visualization charts programmatically
  • Create chart images for reports, dashboards, or emails
  • Produce charts without a browser or frontend

Required Inputs

  • chart_type — one of: line, bar, pie, doughnut, radar, polarArea, bubble, scatter
  • data — Chart.js data object with labels and datasets

Authentication

Send your API key in the CLIENT-API-KEY header.

Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.

Use Cases

  • Dashboard Reports — Generate chart images for PDF/email reports without a browser
  • Sales Analytics — Create bar/line charts showing revenue, growth, or conversion trends
  • Survey Results — Visualize poll or survey data as pie/doughnut charts
  • Financial Reports — Produce stock performance or budget allocation charts
  • Project Metrics — Generate sprint velocity, burn-down, or team performance charts
  • Newsletter Content — Embed data visualizations directly in email newsletters
  • Slack/Discord Bots — Generate chart images on-the-fly for chatbot responses

Key Options

Parameter Description
chart_type Type of chart (bar, line, pie, etc.)
data Chart.js data config (labels + datasets)
options Chart.js options (title, legend, scales)
width / height Chart dimensions in pixels
output_format url (default), base64, both, image

Example Usage

curl -X POST https://pdfapihub.com/api/v1/generateChart \
  -H "CLIENT-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "chart_type": "bar",
    "data": {
      "labels": ["Q1", "Q2", "Q3", "Q4"],
      "datasets": [{
        "label": "Revenue",
        "data": [120000, 150000, 180000, 200000],
        "backgroundColor": "rgba(54, 162, 235, 0.6)"
      }]
    },
    "options": { "plugins": { "title": { "display": true, "text": "Quarterly Revenue" } } },
    "width": 800,
    "height": 500,
    "output_format": "url"
  }'
安全使用建议
This skill simply sends your Chart.js configuration and data to https://pdfapihub.com to get a generated image. Before using it, verify the legitimacy and privacy/retention policy of pdfapihub.com, avoid sending sensitive or personally identifying data to the third-party service, and treat the CLIENT-API-KEY like any secret (use a dedicated key, do not reuse keys across unrelated services, and rotate/revoke if compromised). Test with non-sensitive/dummy data first. If you need chart generation entirely under your control, consider a local/server-side Chart.js renderer instead of a third-party API.
功能分析
Type: OpenClaw Skill Name: generate-chart Version: 1.0.0 The skill bundle provides a standard interface for generating chart images via a third-party API (pdfapihub.com). The configuration in skill.json and the instructions in SKILL.md are consistent with the stated purpose, and there are no indicators of data exfiltration, malicious execution, or prompt injection.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Name, description, SKILL.md, example.json, and skill.json consistently describe a chart-generation API using Chart.js served by pdfapihub.com. The declared API auth header (CLIENT-API-KEY) is appropriate for this purpose.
Instruction Scope
Runtime instructions are narrowly scoped: they show how to POST chart_type, data, options, and sizing to the external API and how to include CLIENT-API-KEY. The instructions do not request unrelated files, system paths, or extra credentials.
Install Mechanism
There is no install step and no code to execute locally (instruction-only). This minimizes filesystem risk; nothing is downloaded or written by the skill itself.
Credentials
The skill requires an API key (CLIENT-API-KEY) to call the third-party service (skill.json marks auth required). The registry metadata shows no required environment variables, which is consistent for an instruction-only skill, but users must supply an API key when calling the API. This is proportionate to the stated function, but remember the API key grants access to a remote service and should be handled as a secret.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent presence or elevated platform privileges. It does not modify other skills or system-wide configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install generate-chart
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /generate-chart 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the generate-chart skill. - Generate chart images using Chart.js in various types: line, bar, pie, doughnut, radar, polarArea, bubble, and scatter. - Supports customizable Chart.js data and options, chart dimensions, and output format. - Designed for programmatic chart creation—ideal for reports, dashboards, emails, and chatbots. - API key authentication required; sign up at pdfapihub.com for free access.
元数据
Slug generate-chart
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Generate Chart 是什么?

Generate a chart image using Chart.js. Supports line, bar, pie, doughnut, radar, polarArea, bubble, and scatter chart types. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。

如何安装 Generate Chart?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install generate-chart」即可一键安装,无需额外配置。

Generate Chart 是免费的吗?

是的,Generate Chart 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Generate Chart 支持哪些平台?

Generate Chart 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Generate Chart?

由 Rishabh Dugar(@rishabhdugar)开发并维护,当前版本 v1.0.0。

💬 留言讨论