AI Chart Generator
Describe the chart you want in plain English and Chart.ts generates it. Works with GPT, Claude, and any LLM. The structured API makes it easy for AI to generate chart code that renders as clean SVG.
$
npm install @chartts/coreexample.tsx
// AI-friendly API: structured, typed, predictable
// LLMs can generate this code reliably:
import { bar } from "@chartts/core"
const svg = bar({
data: [
{ product: "Widget A", q1: 120, q2: 180 },
{ product: "Widget B", q1: 90, q2: 240 },
{ product: "Widget C", q1: 200, q2: 160 },
],
x: "product",
y: ["q1", "q2"],
layout: "grouped",
})
// Output: clean SVG string, ready to embedFeatures
AI-friendly structured API
Works with GPT, Claude, Gemini, and any LLM
Typed inputs prevent AI hallucination
Clean SVG output for embedding
40+ chart types AI can generate
No API key needed for rendering
Open source, runs anywhere