Chart Renderer logo

Chart Renderer

Organization
openvetta
chart-renderer

创建适用于图表渲染插件的 Chart.js 图表。当用户要求把数据做成图表、可视化趋势、比较分类或展示占比时使用。

Overview

Publisheropenvetta
Repositoryopen-vetta
Skill namechart-renderer
Stars
299
Forks
51
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by openvetta on GitHub. Read the source before you install it.

Installation

Install the Chart Renderer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/openvetta/open-vetta/tree/main/packages/plugins/presets/chart-renderer/skills/chart-renderer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openvetta/open-vetta.git /tmp/open-vetta
mkdir -p .claude/skills
cp -r /tmp/open-vetta/packages/plugins/presets/chart-renderer/skills/chart-renderer .claude/skills/chart-renderer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Chart Renderer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Chart Renderer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Chart Renderer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Chart.js 图表渲染

目标

把用户提供的数据整理成一次 render_chart 工具调用,让图表出现在当前 MessageList 消息下方。不要只输出 Markdown 表格来替代图表。

工具参数

必须传:

  • type: line、bar、pie、doughnut、polarArea、radar、scatter 或 bubble
  • data: 标准 Chart.js data 对象

可选传:

  • options: 标准 Chart.js options 对象
  • title: 简短中文标题
  • description: 一句话说明统计口径或时间范围
  • height: 180 到 560 之间的数字,默认 300
  • charts: 可选的图表数组,最多 4 个;使用 charts 时每一项都必须包含自己的 type 和 data

优先使用一次 render_chart 调用中的 charts 数组生成多图表。单图表也可以继续直接传 type 和 data,以兼容旧调用。

如果用户同一轮需要多个图表,必须尽量合并到一次工具调用中,不要连续调用多次 render_chart。最多 4 个图表,超过 4 个时按用户最重要的指标合并或分批,并先说明限制。

布局规则

  • 每个图表都占满整行宽度,单列自上而下排列,顺序即传入顺序
  • 不要为了排版重复图表
  • 多个指标需要分别展示时,使用一个 charts 数组调用,不要连续调用工具

数据格式

分类图表使用:

json
{
  "labels": ["一月", "二月", "三月"],
  "datasets": [
    {
      "label": "销售额",
      "data": [120, 180, 240],
      "backgroundColor": "#2563eb",
      "borderColor": "#2563eb"
    }
  ]
}

折线图和柱状图可以有多个 datasets。饼图和环形图通常使用一个 dataset:

json
{
  "labels": ["华东", "华南", "华北"],
  "datasets": [{
    "label": "订单占比",
    "data": [45, 30, 25],
    "backgroundColor": ["#2563eb", "#16a34a", "#f59e0b"]
  }]
}

选择图表类型

  • 时间趋势:line
  • 分类对比:bar
  • 构成占比:doughnut 或 pie
  • 多维指标:radar
  • 两个数值变量关系:scatter
  • 三个数值变量关系:bubble

约束

  1. 只传 JSON 可序列化值,不传函数、Date、undefined、DOM 节点或自定义类实例。
  2. charts 数量必须在 1 到 4 之间;每个图表都必须有合法的 type 和 data。
  3. labels 和 datasets[].data 的长度应一致;不要混用中文标签和缺失数据。
  4. 数值缺失时使用 null,不要使用 NaN 或字符串数字。
  5. 工具调用失败时,读取返回的 error 和 retryable 字段,立即修正参数并重试一次;不要结束当前任务。
  6. 多图表需求只调用一次工具,使用 charts 数组,不要为每个图表分别调用工具。
  7. 如果用户没有提供足够数据,先说明缺少哪些字段,不要编造数值。

Frequently asked questions

What does the Chart Renderer AI skill do?

创建适用于图表渲染插件的 Chart.js 图表。当用户要求把数据做成图表、可视化趋势、比较分类或展示占比时使用。

Why use Chart Renderer on TypingMind?

Because you install it once and use it with any model. Chart Renderer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Chart Renderer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openvetta/open-vetta/tree/main/packages/plugins/presets/chart-renderer/skills/chart-renderer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Chart Renderer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Chart Renderer?

As many as you like. As long as a model supports skills, you can use Chart Renderer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Chart Renderer AI skill free?

Yes. It is published on GitHub by openvetta under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇