orchid / charts
PHP-first server-side SVG charts for dashboards. Zero JavaScript runtime.
Requires
- php: ^8.3
Requires (Dev)
- infection/infection: ^0.32
- laravel/pint: ^1.29
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^13.1
- rector/rector: ^2.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-07 22:00:31 UTC
README
Charts that belong in your product.
Orchid Charts is a JavaScript library for dashboards, reports, activity calendars, and release plans. Turn your data into interactive SVG charts with a short, consistent API and ready-to-use axes, tooltips, and keyboard navigation.
Quick start
npm install @orchidsoftware/charts
Add a chart container:
<div id="revenue"></div>
Import the chart and its stylesheet, then render your data:
import { LineChart } from "@orchidsoftware/charts"; import "@orchidsoftware/charts/style.css"; const revenue = LineChart.make("#revenue") .labels(["Jan", "Feb", "Mar", "Apr", "May", "Jun"]) .dataset("Revenue", [42, 48, 57, 63, 68, 76]) .render();
The chart follows its container's width. Keep the returned instance to update its
data with update(), download an SVG with download(), and release resources
with destroy() when the view is removed.
Use it in your product
Twelve chart types share the same lifecycle, from line and bar charts to calendar heatmaps and timelines. The package includes TypeScript declarations, tree-shakeable ESM, and zero runtime dependencies.
- React, Vue, and Hotwire โ connect charts to component lifecycles.
- Customization โ match your interface with CSS variables and chart options.
- Large data โ aggregate records or select a range before rendering.
License
MIT. Part of Orchid Software, maintained by @tabuna.