PHPackages                             carlosafonso/plotta - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. carlosafonso/plotta

ActiveLibrary

carlosafonso/plotta
===================

A simple chart generation and manipulation library

01PHP

Since Aug 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/carlosafonso/plotta)[ Packagist](https://packagist.org/packages/carlosafonso/plotta)[ RSS](/packages/carlosafonso-plotta/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

plotta
======

[](#plotta)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5990cac9ae326a90fa0c5f391c6c62b782b2c38d3b776942abe758dbdfe07519/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361726c6f7361666f6e736f2f706c6f7474612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carlosafonso/plotta)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c42fe320863c9b9351a14b2726f493eb055a72c5d5514ecd96e306067a3a7c73/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6361726c6f7361666f6e736f2f706c6f7474612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/carlosafonso/plotta)[![Coverage Status](https://camo.githubusercontent.com/c53279e2ac871a42445aaa0d5e7f714184046f862714567e14d184da089062e4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6361726c6f7361666f6e736f2f706c6f7474612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/carlosafonso/plotta/code-structure)[![Quality Score](https://camo.githubusercontent.com/82d5ccb238f97c52993d2da51c75852e6f30739b165a3ee84895d341df831ab3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6361726c6f7361666f6e736f2f706c6f7474612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/carlosafonso/plotta)[![Total Downloads](https://camo.githubusercontent.com/d8f77a8abbc7d6e5c2aefbefd218c76045b39a09b2b685d140e7fbdd3f6d626e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361726c6f7361666f6e736f2f706c6f7474612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carlosafonso/plotta)

A very simple PHP library to create static charts.

Install
-------

[](#install)

Via Composer

```
$ composer require carlosafonso/plotta
```

Usage
-----

[](#usage)

```
$builder = new PlotBuilder();
$builder
    ->withDimensions(500, 250)
    ->withTitle('Average monthly temperature in Madrid, Spain')
    ->withXAxis(new XAxisConfig('Month of year', ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']))
    ->withYAxis(new YAxisConfig('Degrees Celsius'))
    ->withData([10,12,16,18,22,28,32,31,26,19,13,10])
    ->withData([3,4,6,8,11,16,19,19,15,11,6,4])
    ->render('/path/to/chart.png');
```

This will produce a chart like the following one:

[![sample_chart.png](./sample_chart.png)](./sample_chart.png)

Security
--------

[](#security)

If you discover any security related issues, please email the author instead of using the issue tracker.

Credits
-------

[](#credits)

- [Carlos Afonso](https://github.com/carlosafonso)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/298322ba620ba6518bce36e896723f1f771c4ee6257ab49548c45dcb06e2b9ce?d=identicon)[carlosafonso](/maintainers/carlosafonso)

---

Top Contributors

[![carlosafonso](https://avatars.githubusercontent.com/u/1700229?v=4)](https://github.com/carlosafonso "carlosafonso (19 commits)")

### Embed Badge

![Health badge](/badges/carlosafonso-plotta/health.svg)

```
[![Health](https://phpackages.com/badges/carlosafonso-plotta/health.svg)](https://phpackages.com/packages/carlosafonso-plotta)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
