[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110859":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":29,"discoverSource":30},110859,"ztd-charts","Junhan2\u002Fztd-charts","Junhan2","47 animated, interactive React charts in pure SVG with zero runtime dependencies, a JSON spec, and CLI and MCP tools for AI agents","https:\u002F\u002Fcharts.ztd.app",null,"TypeScript",385,56,1,0,2,53,262,13,79.27,"MIT License",false,"main",[],"2026-11-19 06:52:21","2026-11-23 19:35:38","\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Freadme\u002Flogo-dark.svg\">\n    \u003Cimg src=\"docs\u002Freadme\u002Flogo-light.svg\" width=\"56\" height=\"56\" alt=\"\">\n  \u003C\u002Fpicture>\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">ztd charts\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  Animated, accessible React charts that read like a report.\u003Cbr>\n  44 charts in pure SVG with no runtime dependencies, and a JSON spec your AI agent can write.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fztd-charts\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fztd-charts?color=0B8FD8&label=npm\" alt=\"npm version\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fl\u002Fztd-charts?color=0B8FD8\" alt=\"MIT license\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fruntime%20dependencies-0-0B8FD8\" alt=\"No runtime dependencies\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002Fdocs\u002F\">\u003Cb>Docs\u003C\u002Fb>\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002F\">Gallery\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002Fexamples\u002F\">Example dashboards\u003C\u002Fa> ·\n  \u003Ca href=\"https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002Fplayground\u002F\">Playground\u003C\u002Fa> ·\n  \u003Ca href=\"README.ko.md\">한국어\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Freadme\u002Fhero-en.png\" width=\"100%\" alt=\"A dashboard built with ztd charts in the light theme: active users, visit to purchase, conversions, quarterly revenue, viewing hours and share price\">\n\u003C\u002Fp>\n\n## Why ztd charts\n\n- **Each card says one thing.** One item takes the accent color and the rest stay neutral, with a bold takeaway under the chart, so a reader sees the point before reading the axes.\n- **Motion that explains.** Charts draw in as they scroll into view, move on from where they are when the data changes, and let you drag over a range to read its change, high and low.\n- **Accessible by default.** Keyboard navigation, a screen reader description and data table for every chart, reduced motion, and every label at WCAG AA contrast.\n- **Small, with nothing else to install.** React is the only peer dependency. A chart with the shared core is about 12 to 26 kB Brotli, and very large data switches to canvas on its own.\n- **Ready for AI.** Every chart is also a JSON spec with a public JSON Schema, and a CLI, an MCP server and an agent skill validate it and render it to PNG, SVG or HTML.\n- **English and Korean.** en-US by default. `locale=\"ko-KR\"` switches number formats (1.2만, 3.4억) and chart text to Korean.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Freadme\u002Fmotion-en.gif\" width=\"100%\" alt=\"Two cards drawing in, the bar chart moving to new data from where it is, and a drag over the candlestick chart showing the change, high and low for that range\">\n\u003C\u002Fp>\n\n## Quick start\n\n```bash\nnpm i ztd-charts\n```\n\n```tsx\nimport { ChartCard, PieChart } from \"ztd-charts\";\n\nconst sales = [\n  { device: \"Mobile\", share: 72 },\n  { device: \"Desktop\", share: 23 },\n  { device: \"Tablet\", share: 5 },\n];\n\nexport function SalesByDevice() {\n  return (\n    \u003CChartCard\n      title=\"Sales by device\"\n      subtitle=\"Share of revenue (%)\"\n      legend={[{ label: \"Mobile\", color: \"accent\" }, { label: \"Desktop\", color: \"ink\" }, { label: \"Tablet\", color: \"neutral\" }]}\n      takeaway=\"Mobile brings in most sales\"\n    >\n      \u003CPieChart data={sales} label=\"device\" value=\"share\" highlight=\"Mobile\" \u002F>\n    \u003C\u002FChartCard>\n  );\n}\n```\n\nThe same chart as a JSON spec, which is what the CLI, the MCP server and an AI agent work with:\n\n```tsx\nimport { Chart } from \"ztd-charts\";\n\n\u003CChart\n  spec={{\n    type: \"pie\",\n    data: sales,\n    encoding: { label: \"device\", value: \"share\" },\n    options: { highlight: \"Mobile\" },\n  }}\n\u002F>;\n```\n\n## 44 charts\n\n\u003Ca href=\"https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002F\">\u003Cimg src=\"docs\u002Freadme\u002Fgallery-en.png\" width=\"100%\" alt=\"All 44 charts in the light theme, from pie and donut to symbol map and flow map\">\u003C\u002Fa>\n\n| Group | Charts |\n|---|---|\n| Proportion | Pie · Donut · Waffle · Marimekko · Segmented bar |\n| Hierarchy | Treemap · Sunburst · Tree |\n| Flow | Funnel · Sankey · Chord |\n| Comparison | Bar · Waterfall · Pareto · Radar · Slope · Dumbbell · Lollipop · Bar race |\n| Trend | Line (range band too) · Area · Streamgraph · Sparkline · Calendar heatmap · Bump · Candlestick · Skyline · Timeline |\n| Distribution | Box plot (violin too) · Beeswarm · Ridgeline · Histogram |\n| Relationship | Heatmap · Bubble · Scatter · Parallel coordinates · Network |\n| Map | Tile grid map, choropleth map, symbol map, flow map |\n| KPI | Gauge · Bullet · Radial bar |\n\nEach chart has a page with a live demo, its props and copyable code in the [gallery](https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002F). Why each one made the cut, and what was left out, is in the [chart catalog](docs\u002Fcatalog.md).\n\n## Use it with AI\n\n```bash\n# Add the MCP server to Claude Code (Cursor and Claude Desktop are in the guide)\nclaude mcp add ztd-charts -- npx -y ztd-charts-mcp\n\n# Chart ideas and ready specs from your data, then a PNG\nnpx ztd-charts-cli suggest sales.csv --out-dir charts\nnpx ztd-charts-cli render donut.json --out donut.png --theme light --scale 2\n```\n\nThe MCP server lists charts, returns a chart's schema and example, validates a spec with suggestions for wrong fields, renders it to PNG, SVG and React code, and suggests charts from CSV, rows or a URL. The [agent skill](skills\u002Fztd-charts\u002FSKILL.md) walks an agent from picking a chart to a checked preview, and [llms.txt](llms.txt) gives a model the whole library in one file.\n\n## Packages\n\n| Package | What it is |\n|---|---|\n| [`ztd-charts`](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fztd-charts) | The React charts, cards, grid, themes and data hooks, plus spec tools (`ztd-charts\u002Fspec`) and server rendering (`ztd-charts\u002Fserver`) |\n| [`ztd-charts-cli`](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fztd-charts-cli) | List, validate, render, start a project and suggest charts from the terminal |\n| [`ztd-charts-mcp`](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fztd-charts-mcp) | An MCP server with five chart tools for AI agents |\n\n## Learn more\n\n- [Guide](docs\u002Fguide.md): common props, cards and grid, theme tokens, animation and interaction, accessibility, connecting data (REST, CSV, Supabase, Google Sheets, Postgres), the JSON spec, the CLI, the MCP server and development\n- [Docs site](https:\u002F\u002Fcharts.ztd.app\u002Fdocs\u002Fdocs\u002F): every chart with a live demo, five example dashboards, data connection and a playground\n- [QA report](docs\u002FQA-report.md): screenshots, contrast, frame rate, a 10,000-point stress test and bundle sizes\n- Coming from `@junhanlee\u002Fchart-kit`? See [Migrating](docs\u002Fguide.md#migrating-from-junhanleechart-kit).\n\n## License\n\nMIT. Every number in the examples is made up.\n","ztd-charts 是一个面向数据叙事与 AI 协同的轻量级 React 图表库，提供 44 种纯 SVG 实现的交互动画图表。核心特点是零运行时依赖、内置无障碍支持（键盘导航、屏幕阅读器描述、数据表格）、声明式 JSON 规范（含公开 Schema），并配套 CLI 与 MCP 工具链，支持 AI 代理生成、校验和导出图表（SVG\u002FPNG\u002FHTML）。适用于需高可访问性、低包体积、AI 驱动数据可视化（如自动化报告、BI 看板、智能分析助手）的场景。","2026-11-24 04:39:48","CREATED_QUERY"]