Download the PHP package codinglombok/lombok-charts without Composer
On this page you can find all versions of the php package codinglombok/lombok-charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codinglombok/lombok-charts
More information about codinglombok/lombok-charts
Files in codinglombok/lombok-charts
Package lombok-charts
Short Description Zero-dependency chart library: grammar-of-graphics pipeline, Canvas/SVG renderers, LTTB decimation, and real-time streaming. ~18 KB gzipped.
License Apache-2.0
Homepage https://github.com/codinglombok/LombokCharts
Informations about the package lombok-charts
LombokCharts
GitHub
npm
SourceForge
Packagist
Quality
Community
Lombok Ecosystem
A zero-dependency charting library for the browser. It pairs a small grammar-of-graphics core (Data → Scale → Mark) with pluggable Canvas and SVG renderers, LTTB decimation, and a real-time streaming layer — so the same API draws a five-point bar chart or a five-million-point line without changing shape.
- Zero runtime dependencies. Native Canvas2D / SVG /
ResizeObserver/requestAnimationFrame/ typed arrays only. - Two renderers, one API. Canvas by default (fast path for huge series), SVG when you want crisp vector output or DOM-inspectable nodes.
- Scales from tiny to massive. Typed-array pipeline plus Largest-Triangle-Three-Buckets (LTTB) decimation keeps million-point series interactive.
- Real-time built in.
appendData, async iterators,EventSource, orWebSocket, with a ring buffer for constant-memory sliding windows. - Tree-shakeable. Register only the marks you use and the rest is dropped by your bundler.
- ~19 KB gzipped for the full build with every mark registered; far less for a custom subset.
Quick Start
npm / bundler
CDN (no build step)
Other CDN options (pinned version, ESM, unpkg) are listed in DISTRIBUTION.md.
Composer (PHP projects)
Then reference vendor/codinglombok/lombok-charts/dist/lombok-charts.umd.min.js in your HTML.
Chart Types
| Family | Marks |
|---|---|
| Bar | column, horizontal bar, grouped, stacked, waterfall |
| Line | line, step, spline (Catmull-Rom), slope |
| Area | area, stacked, streamgraph |
| Point | scatter, bubble |
| Arc | pie, donut, gauge, radial bar |
| Statistical | histogram, box plot |
| Financial | candlestick (OHLC) |
| Specialized | radar, heatmap, funnel, treemap, sankey |
Pick a mark with the mark option: a shorthand string ('donut', 'stacked-bar', 'spline')
or an object with extra settings ({ type: 'gauge', value: 72, min: 0, max: 100 }).
Examples
Multi-series line:
Donut chart:
Large dataset with typed arrays (LTTB kicks in automatically):
Real-time stream with sliding window:
Theming and export:
API at a Glance
Full reference: docs/theming.md.
Internals and how to add a mark: docs/architecture.md. Porting the
pure-logic core to other languages: docs/porting.md.
Performance
The Canvas renderer has a typed-array fast path (polylineTyped / pointsTyped) that avoids
per-point allocations, and line/area/scatter marks decimate with LTTB when the series has more
points than the plot has horizontal pixels to show them. Animation is disabled automatically above
50,000 points so the first paint stays responsive.
General guidance: Canvas + LTTB is the default for anything above a few thousand points;
SVG is best below a few thousand or when you need vector output. The repo includes a live
benchmark at examples/stress.html — choose 100k / 1M / 5M points,
toggle LTTB, and switch Canvas vs SVG.
Bundle Size
| Build | File | Raw | Gzipped |
|---|---|---|---|
| ESM (min) | dist/lombok-charts.esm.min.js |
~56 KB | ~19 KB |
| UMD (min) | dist/lombok-charts.umd.min.js |
~57 KB | ~19 KB |
These cover the full library with all 13 marks registered. Importing Chart plus only the
marks you need lets your bundler tree-shake the rest for a smaller footprint.
Development
The dist/ folder is committed so that Composer, jsDelivr-from-GitHub, and <script> users can
consume it without a build step; CI regenerates it on every push to keep it in sync with src/.
Roadmap
See ROADMAP.md for the full 0.1 → 1.0 plan. Next priorities:
- Visual regression testing with Playwright (0.2)
- TypeScript declarations and API hardening (0.3)
- Full ARIA accessibility and keyboard navigation (0.4)
- WebGL renderer for extreme point counts (0.5)
- Framework wrappers: React, Vue, Svelte, Angular (0.6)
License
Apache-2.0 © codinglombok — see NOTICE.