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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lombok-charts

LombokCharts

Universal zero-dependency charting library — Canvas/SVG, LTTB decimation, real-time streaming. Part of Lombok Ecosystem. Apache-2.0.


GitHub

CI CodeQL Visual Pages GitHub Release GitHub Downloads (all assets, all releases) GitHub Downloads (latest release) GitHub repo size


npm

npm version npm downloads npm total jsDelivr hits


SourceForge

Download LombokCharts SourceForge downloads SourceForge weekly SourceForge daily SourceForge total


Packagist

Packagist version Packagist downloads Packagist license


Quality


Community

GitHub stars GitHub forks GitHub watchers GitHub contributors GitHub issues GitHub pull requests GitHub last commit


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.

Why this library? (Mengapa library ini?)

LombokCharts is a standalone, general-purpose charting library for anyone who needs to turn numbers into pictures — web developers, data/BI teams, fintech and trading desks, SRE and monitoring dashboards, IoT and industrial HMI/kiosk panels, scientific and education tools, and government or NGO open-data portals. It is not tied to any single application or framework.

Problem How LombokCharts solves it
Chart libraries pull in large dependency trees Zero runtime dependencies, ~19 KB gzip full build, tree-shakeable marks
Libraries are fast or crisp, not both One API over Canvas (millions of points) and SVG (vector, inspectable)
Millions of points freeze the browser Typed-array pipeline + LTTB / min-max decimation
Live data needs custom plumbing Built-in ring buffer, rAF-coalesced appendData, WebSocket / SSE / async iterator
Charts are English-only and inaccessible Opt-in i18n (Core-20 + Nusantara, RTL), ARIA role/summary, locale-aware ticks
Logic cannot be reused outside JS Pure DOM-free core with a normative SPEC + cross-language test vectors for ports

Compared with Chart.js, ECharts, uPlot, Plotly and D3, LombokCharts is the only one that combines zero dependencies, a grammar-of-graphics core, dual Canvas/SVG output, built-in LTTB streaming and cross-language test vectors for porting the pure core.

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:

Internationalization

English is built in. The other 22 catalogs (Core-20 + jv, su, ms) are opt-in, so they add nothing to your bundle unless you load them (~1.8 KB gzip for all of them):

With script tags, load the add-on after the main bundle; it registers every catalog automatically:

Opt-in catalogs: zh, hi, es, fr, ar, bn, pt, ru, ur, id, de, ja, sw, mr, te, tr, ta, vi, ko (Core-20 with en) plus jv, su, ms (src/i18n/locales.js). Add your own with registerLocale("nl", { noData, chart, summary }).

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 ~58 KB ~19 KB
UMD (min) dist/lombok-charts.umd.min.js ~59 KB ~20 KB
i18n add-on (optional) dist/lombok-charts-i18n.umd.min.js ~5 KB ~2 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:

Standards implemented

Standard Where
WAI-ARIA 1.2 (role="img", aria-label, aria-pressed) chart surface, legend toggles
BCP 47 language tags + ECMA-402 Intl.NumberFormat config.locale, tick labels
W3C SVG 1.1 / 2 SvgRenderer, toSVG()
WHATWG HTML Canvas 2D, W3C PNG (ISO/IEC 15948) CanvasRenderer, toPNG()
WHATWG Server-Sent Events, RFC 6455 WebSocket chart.stream(...)
ECMAScript 2021 (ECMA-262), ES modules + CommonJS + UMD dist/ builds
Semantic Versioning 2.0, Conventional Commits, Keep a Changelog release process

Behavior of the portable core is pinned by the cross-language vectors in vectors/lombokcharts-vectors-v1.json (checked by tests/vectors.test.js).

Lombok Ecosystem

LombokCharts works alongside other Lombok Ecosystem libraries — they are optional companions, never required dependencies (and none of them owns LombokCharts):

Project Description
LombokClarion PHP 8.3+ full-stack framework — 31 packages, Apache-2.0
LombokCSS Token-first CSS framework — npm + RubyGem + jsDelivr
LombokCharts Zero-dependency charting — Canvas/SVG, LTTB, streaming
LombokQRCode Pure-JS QR code + Code128 barcode toolkit
LombokTableSheet Spreadsheet engine — formulas, i18n, ANOVA, plugins
LombokAnimate Modular web animation library — scroll, parallax, morph
LombokECC Reed-Solomon (255,239) — TS + PHP + Python + Go + Rust + C++
LombokPDF PDF generation and manipulation toolkit

Contributing

See CONTRIBUTING.md.

License

Apache-2.0 © codinglombok — see NOTICE.


All versions of lombok-charts with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package codinglombok/lombok-charts contains the following files

Loading the files please wait ...