wanghetommy/ichartjs
An agent-first, JSON-driven visualization runtime for interactive charts, project views, and process diagrams with Canvas and SVG support.
What it solves
iChart.js 2.0 provides a standardized, agent-first runtime for generating data visualizations. It solves the problem of AI agents guessing chart configurations by providing a formal contract for data inspection, chart planning, and specification validation, ensuring that generated charts are accurate, accessible, and consistent.
How it works
The project acts as a bridge between AI agents and visualization rendering. Agents use a public API to inspect data, select appropriate chart types (e.g., line, bar, Gantt, or flow diagrams), and generate a JSON-based specification. The runtime then validates this specification before rendering it via SVG or Canvas. It includes specific "profiles" for different use cases and supports incremental construction, where an agent can build or modify a chart in a multi-turn, previewable process.
Who it’s for
It is designed for developers building AI-powered applications that need to present data visually, as well as for those developing AI agents (such as coding assistants) that need to orchestrate chart creation and delivery within a web environment.
Highlights
- Agent-First Contract: Includes formal APIs for capability discovery, data inspection, planning, and spec validation to prevent hallucinated chart configurations.
- Versatile Rendering: Supports both SVG and Canvas, with output capabilities for interactive web pages, static images (PNG/JPEG), and JSON checkpoints.
- Broad Chart Support: Includes foundational charts (line, bar, pie), project management views (Gantt, burndown), and diagramming tools (flow, architecture, mindmaps).
- Integration Ready: Provides an optional "Agent Skill" for integration with AI coding assistants and a comprehensive playground for testing and validation.
Related
- Project
- Project
- Project
- Project
- Project