ChartMLInteractive Dashboards with Markdown & YAML
Create beautiful data visualizations and interactive dashboards using simple markdown and YAML syntax
Create beautiful data visualizations and interactive dashboards using simple markdown and YAML syntax
Combine charts, text, and parameters in markdown documents. Perfect for documentation and reports.
Clean, readable YAML syntax for data visualization. No JavaScript required.
Dynamic filtering and dashboard controls. Parameters update all charts in real-time.
Bar, line, area, scatter, pie, doughnut, and metric cards. Built-in and plugin-based renderers.
Extend with custom chart types, data sources, and aggregation middleware.
Professional-looking visualizations with built-in color palettes and responsive design.
ChartML is a declarative markup language designed for creating beautiful, interactive dashboards in markdown. It combines the simplicity of YAML with the power of D3.js to make data visualization accessible to everyone.
Write your dashboards as markdown documents with embedded ChartML blocks:
# Sales Dashboard
Interactive parameters that control all charts:
```chartml
type: params
version: 1
params:
- id: selected_regions
type: multiselect
label: "Regions"
options: ["US", "EU", "APAC"]
default: ["US", "EU"]
```
Revenue trends over time:
```chartml
type: chart
version: 1
title: "Monthly Revenue"
data:
- month: Jan
region: US
revenue: 45000
- month: Feb
region: US
revenue: 52000
- month: Jan
region: EU
revenue: 38000
- month: Feb
region: EU
revenue: 41000
aggregate:
dimensions: [month]
measures:
- column: revenue
aggregation: sum
name: total_revenue
filters:
rules:
- field: region
operator: in
value: "$selected_regions"
visualize:
type: line
columns: month
rows: total_revenue
axes:
left:
format: "$,.0f"
```For Data Analysts: Create interactive dashboards in markdown without writing code. Focus on insights, not implementation.
For Developers: Declarative YAML syntax makes dashboards versionable, reviewable, and maintainable. Store charts in git alongside your code.
For Technical Writers: Embed live, interactive visualizations directly in documentation. Parameters let readers explore data themselves.
For Teams: Share dashboard specifications across tools. ChartML is an open format that works everywhere markdown does.
# Static site generators (VitePress, Docusaurus, etc.)
npm install @chartml/markdown-it
# React apps with react-markdown
npm install @chartml/markdown-react
# React apps (direct component usage)
npm install @chartml/react
# Vanilla JavaScript
npm install @chartml/coreAll packages include:
One command gets you everything you need to start building dashboards!
Check out the full specification or browse examples to get started.
ChartML powers Kyomi, an AI-powered data analytics platform that generates visualizations from natural language queries.
ChartML is open source and MIT licensed. Contributions welcome!