@ripl/charts
v1.0.0-beta.2
Published
Pre-built chart components for Ripl
Readme
@ripl/charts
Pre-built, animated chart components for Ripl — a unified API for 2D graphics rendering in the browser.
Installation
npm install @ripl/chartsChart Types
| Category | Charts | |----------|--------| | Cartesian | Bar, Line, Area, Scatter, Trend (multi-series bar/line), Stock, Realtime | | Radial | Pie/Donut, Radar, Polar Area, Gauge, Sunburst | | Relational | Sankey, Chord | | Distribution | Heatmap, Treemap, Funnel | | Scheduling | Gantt |
Usage
import {
BarChart,
} from '@ripl/charts';
const chart = new BarChart('#chart', {
data: [
{ label: 'A',
value: 10 },
{ label: 'B',
value: 25 },
{ label: 'C',
value: 15 },
],
keyBy: 'label',
series: [
{ valueBy: item => item.value },
],
});Features
- Animated transitions — Smooth entry, update, and exit animations out of the box
- Interactive — Tooltips, crosshairs, hover effects, and click events
- Configurable — Axes, legends, grids, colors, padding, and more
- Canvas & SVG — Renders to either context via Ripl's unified API
- Tree-shakable — Import only the chart types you need
Documentation
Full documentation, options reference, and interactive demos are available at ripl.rocks.
