canvas-chart

canvas-chart is a skill for Claude Code, Codex from Alpha-Dojo/DojoAgents. It costs 32 tokens per session (3,029 once invoked), scanned A, original, Apache-2.0.

A way to render interactive charts in a dashboard canvas using ECharts, a JavaScript charting library. It outputs chart data and a rendering script in a defined block.

In plain words
What is it for?
Use it for line, bar, area, candlestick, volume, time-series, and other ECharts-supported charts.
Why use it?
It gives the dashboard a standard format for displaying chart data instead of leaving visualisation details to ad hoc text.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

About the project

DojoAgents is an AI agent framework for personal investing that analyzes portfolio holdings alongside financial data and market relationships. It is intended for individual investors and provides interfaces including a command line, web dashboard, and chat gateways. The catalogue entries are add-ons for working with the framework.

Alpha-Dojo/DojoAgents · 3,126 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/alpha-dojo/dojoagents/canvas-chart
Any agent
npx skills add Alpha-Dojo/DojoAgents --skill canvas-chart
Clone the repo
git clone --depth 1 https://github.com/Alpha-Dojo/DojoAgents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for canvas-chart

README.md
[![agentmods](https://agentmods.dev/badge/skills/alpha-dojo/dojoagents/canvas-chart.svg)](https://agentmods.dev/skills/alpha-dojo/dojoagents/canvas-chart)
Your own site
<a href="https://agentmods.dev/skills/alpha-dojo/dojoagents/canvas-chart"><img src="https://agentmods.dev/badge/skills/alpha-dojo/dojoagents/canvas-chart.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.03029
Opus 5 $0.00016 $0.01515
Sonnet 5 $0.00006 $0.00606
Haiku 4.5 $0.00003 $0.00303

Measured 6d ago against content hash 70abac2cf4ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

canvas-chart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dojoagents/skills/built_in/canvas-chart/SKILL.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Canvas Chart Rendering

Use this skill when the user requests a chart, graph, or visualization to be displayed on the Dashboard Canvas panel.

When to Use

Output a DOJO_CHART block whenever the user asks to:

  • Draw a K-line / candlestick chart
  • Plot a line chart (trend, indicators, time series)
  • Show a bar chart (volume, comparisons)
  • Display an area chart (cumulative returns, ranges)
  • Create any ECharts-supported visualization on the canvas

DOJO_CHART Protocol

In your text response, output a fenced code block with the language tag DOJO_CHART. The block must contain a single JSON object with two fields:

```DOJO_CHART
{"data": <chart_data>, "script": "<echarts_render_script>"}
```

Field: data

An array of data points for the chart. Each element is an object representing one data point.

For K-line / OHLCV data, each element must have:

{"time": <unix_timestamp>, "open": <number>, "high": <number>, "low": <number>, "close": <number>, "volume": <number>}

For line / bar / area charts, use a simple structure:

{"time": <unix_timestamp>, "value": <number>}

Or for multi-series:

{"time": <unix_timestamp>, "value1": <number>, "value2": <number>}

Field: script

A JavaScript function body string. The sandbox runtime provides three variables:

  • chart — an initialized ECharts instance (already called echarts.init(container))
  • data — the data array from above
  • echarts — the global ECharts library reference

Your script must call chart.setOption({...}) to render. Do not call echarts.init() — the chart is already initialized.

Dark Theme

The Dashboard uses a dark theme. Always apply these colors:

{
  backgroundColor: 'transparent',
  textStyle: { color: '#e0e0e0' },
  title: { textStyle: { color: '#e0e0e0' } },
  legend: { textStyle: { color: '#aaaaaa' } },
  tooltip: { backgroundColor: '#1a1a2e', borderColor: '#333', textStyle: { color: '#e0e0e0' } }
}

Read the full file on GitHub · 318 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 318 lines · 32 tokens per session scan A 70abac2cf4ce

Subscribe to this mod's changes

canvas-chart is a skill published in the GitHub repository Alpha-Dojo/DojoAgents (3,126 stars, last pushed 4d ago), licensed Apache-2.0. It adds 32 tokens to every session and 3,029 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tensorboard

Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit.

davila7/claude-code-templates · 32 tokens

data-viz-renderer

Generate self-contained HTML/SVG infographics from JSON data, including stat cards, bar charts, flow diagrams, and mixed dashboards. Offers 8 color palettes and built-in icons with no external dependencies. Triggered when users request data visualization, infographics, charts, or dashboards.

zebbern/claude-code-guide · 62 tokens

infographic-creator

基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。.

antvis/Infographic · 25 tokens

code-to-diagram

Analyze codebases and automatically generate architecture diagrams, flowcharts, and org charts. Uses AST parsing to map import dependencies for Python, JS/TS, Go, and Java, outputting Mermaid or SVG files. Triggered when users ask to visualize code architecture, understand dependencies, draw a flowchart, or create a…

zebbern/claude-code-guide · 74 tokens

timeline-builder

Generate beautiful interactive timeline HTML pages from JSON data, with vertical, horizontal, or dual-side layouts, collapsible details, and custom colors. Ideal for project milestones, company histories, or resumes. Triggered when a user mentions 'timeline', 'history of events', 'project milestones', 'release log'…

zebbern/claude-code-guide · 74 tokens

results-analysis

This skill should be used when the user asks to "analyze experimental results", "run strict statistical analysis", "compare model performance", "generate scientific figures", "check significance", "do ablation analysis", or mentions interpreting experiment data with rigorous statistics and visualization. It focuses on…

Galaxy-Dawn/claude-scholar · 68 tokens