跳到正文
TakoAPI
返回技能列表

chart-image

由 dannyshmueli 提供

Image & Video Generation
5.1k下载量由 clawskills.sh 提供
5星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate publication-quality chart images from data.

描述

该技能的功能

Generates PNG or SVG chart images from JSON data using Vega-Lite. Supports line, bar, area, pie, donut, candlestick, heatmap, multi-series, and stacked charts. Runs as a pure Node.js script with no browser or native compilation required.

Unlike Puppeteer-based chart tools, it uses prebuilt Sharp binaries and generates charts in under 500ms with no browser overhead, making it suitable for Fly.io, Docker, and VPS deployments.

何时使用

  • Embedding price charts in trading alerts
  • Visualizing server metrics in monitoring reports
  • Generating activity heatmaps from log data
  • Plotting time series for scheduled digest emails
  • Creating candlestick charts for financial dashboards

示例工作流

输入

User asks: Plot hourly temperature readings from today as a dark-mode line chart with change annotation

智能体
  1. 1

    Format temperature data as a JSON array with x (time) and y (temperature) fields

  2. 2

    Run chart.mjs with --type line, --x-type temporal, --dark, --show-change, --show-values flags

  3. 3

    Set --title and --output path under /data/clawd/tmp/

  4. 4

    Send the generated PNG to the user's channel using the message tool with filePath

输出

A dark-mode line chart PNG showing temperature over time with a +/-% change label at the last data point

安装

clawhub install dannyshmueli/chart-image

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接