Charts, Documents & Visualization
Generate charts, spreadsheets, PDFs, presentations, and technical analysis from images
🟢 Beginner friendly — produces files on your machine. No funds move.
The agent can produce visual artifacts: ECharts interactive charts, Word/PDF/PowerPoint documents, and analyze uploaded chart images for technical patterns.
What you can do
- Chart generation: price charts, comparison charts, portfolio pie charts
- Technical analysis from images: upload a K-line screenshot for TA
- Document generation: Word, PDF, and PowerPoint report deliverables
- Spreadsheet creation: data tables and analysis exports
- Data visualization: any structured data rendered as a chart
Example prompts
create a chart comparing BTC and ETH performance over 6 months
analyze this chart [upload screenshot] — what patterns do you see?
generate a PDF report of my portfolio performance
create a spreadsheet of the top 20 DeFi protocols by TVLExample output — chart generation
Prompt: create a chart comparing BTC and ETH performance over 6 months, indexed to 100 at start
Agent response:
Creating interactive ECharts visualization…
Chart is ready: BTC vs ETH, 6-month indexed.
Data summary (2026-10-17 → 2026-04-17):
- BTC: 100 → 138.5 (+38.5%)
- ETH: 100 → 125.7 (+25.7%)
- BTC outperformed by 12.8 percentage points
- BTC max drawdown: -14.2% (Jan 2026)
- ETH max drawdown: -21.4% (Jan 2026)
- Correlation: 0.82 (strong, as expected)
Want me to add a correlation heatmap or extend the window?
At turn end, the chart reference resolves to three files in the sandbox:
📎 Artifacts
📊 BTC vs ETH, 6-month indexed
html → file:///…/sandbox/files/artifacts/x-a3b48f/chart-x-a3b48f.html
json → file:///…/sandbox/files/artifacts/x-a3b48f/chart-x-a3b48f.json
png → file:///…/sandbox/files/artifacts/x-a3b48f/chart-x-a3b48f.png- HTML — self-contained page loading ECharts from the public CDN. Open in a browser to interact with the chart (tooltips, legend toggles, zoom).
- JSON — raw
{ charts: [...] }options you can drop into any ECharts viewer or embed in your own app. - PNG — rendered at 2× DPR by Playwright. Best-effort: if Chromium isn't installed, HTML and JSON still land and PNG is skipped with a log warning.
Example output — TA from image
Prompt: analyze this chart [upload 4h BTC chart screenshot]
Agent response:
4-hour BTC chart, pattern analysis:
- Ascending triangle forming since April 10 — horizontal resistance at $68.2k, rising support from $63.4k lows.
- Volume profile: declining on each retest of resistance (textbook accumulation setup — not confirmed yet).
- RSI-14: 58 — room to run before overbought.
- Projected breakout target: $68.2k + (triangle height $4.8k) = $73.0k measured move.
Caveats: ascending triangles fail ~30% of the time, especially on lower timeframes. Confirm with a 4h candle close above $68.4k on rising volume before treating this as a real breakout.
Example output — PDF report
Prompt: generate a PDF report of my portfolio performance over Q1
Agent response:
Compiled a Q1 performance report. Sections: holdings overview, realized vs unrealized P&L, top contributors, drawdown breakdown, and a risk commentary.
Written to
reports/portfolio-q1-2026.pdf(7 pages, 142 KB).
📎 Artifacts
📄 Portfolio — Q1 2026
pdf → file:///…/sandbox/files/reports/portfolio-q1-2026.pdfPDFs are produced by the pdf_create tool (pdf-lib, MIT). Text-only
output, wrapped for Helvetica at letter size. The agent passes a
{ title, sections: [{ heading?, paragraphs }] } payload.
Example output — Word (DOCX) memo
Prompt: write a DOCX memo summarizing the top 5 DeFi protocol risks
Agent response:
Drafted a five-section memo. Each risk has a one-paragraph explanation plus a mitigation note. Kept headings at H2 so you can paste into any template.
Written to
memos/defi-risks.docx(5 sections, 18 KB).
📎 Artifacts
📄 DeFi protocol risks — memo
docx → file:///…/sandbox/files/memos/defi-risks.docxDOCX is produced by docx_create (docx npm, MIT). Shape is the
same { title, sections } as PDF — the two tools share an input
contract so you can ask for either format interchangeably.
Example output — Spreadsheet (CSV)
Prompt: create a CSV of the top 20 DeFi protocols by TVL
Agent response:
Pulled the top 20 from DefiLlama. Columns: rank, protocol, chain, category, TVL (USD), 7d change, 30d change. Sorted by TVL desc.
Written to
data/defi-top20-tvl.csv(21 rows including header).
📎 Artifacts
📊 DeFi top-20 by TVL
csv → file:///…/sandbox/files/data/defi-top20-tvl.csvSpreadsheets are emitted as CSV via the write_file tool into
the sandbox. For a richer format (formulas, multi-sheet, styled
cells), ask for a PDF or DOCX report that embeds the table — the
document tools handle layout, and the data comes from the same
DefiLlama / market-data skills.
XLSX note: the agent does not natively generate
.xlsxfiles — CSV covers the analytical-export use case at a fraction of the dependency weight. XLSX is supported as an input: upload a spreadsheet and the spreadsheet parser converts it to structured text the agent reasons over.
Skills and tools involved
| Skill | Role |
|---|---|
viz.chart | ECharts interactive chart artifacts (HTML + JSON + PNG per chart) |
workspace.documents | Word / PDF / PowerPoint generation (docx_create, pdf_create, pptx_create) |
workspace.files | Sandbox file read / write / search — CSV export lives here |
research.web | Data gathering for visualizations |
Scenarios: SCENARIO_VISUALIZATION · SCENARIO_CHART_TECHNICAL_ANALYSIS