TypeScript Chart Library

Chart.ts is built in TypeScript strict mode from day one. Every prop is typed, every data shape is inferred, and your editor gives you autocomplete for everything. The type system IS the documentation.

$npm install @chartts/core
example.tsx
import { line } from "@chartts/core/line"

// Type inference: x and y are constrained
// to keys of your data objects
const svg = line({
  data: [
    { month: "Jan", revenue: 4200 },
    { month: "Feb", revenue: 5800 },
  ],
  x: "month",    // autocomplete: "month" | "revenue"
  y: "revenue",  // autocomplete: "month" | "revenue"
})

Features

Built in TypeScript strict mode
Full type inference on data shapes
Autocomplete for every prop
Generic components constrained to your data
Exported type definitions for all chart options
Works with any TypeScript framework
Zero @types/ packages needed