PHPackages                             seigler/neat-charts - 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. [Image &amp; Media](/categories/media)
4. /
5. seigler/neat-charts

ActiveLibrary[Image &amp; Media](/categories/media)

seigler/neat-charts
===================

Generates clean-looking SVG charts

86.4k2[1 issues](https://github.com/seigler/neat-charts/issues)PHP

Since Mar 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/seigler/neat-charts)[ Packagist](https://packagist.org/packages/seigler/neat-charts)[ RSS](/packages/seigler-neat-charts/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

seigler/neat-charts [![GitHub stars](https://camo.githubusercontent.com/cf1221d3005045580391c70a746c24d0418e471851b9a9291ed280a85df8d66d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f736569676c65722f6e6561742d6368617274732e737667)](https://github.com/seigler/neat-charts/stargazers) [![Packagist](https://camo.githubusercontent.com/836fa58d1761e5f0ee171f70ff60f6a9b4388fd4b1108dfc2885a369672a39ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736569676c65722f6e6561742d6368617274732e737667)](https://packagist.org/packages/seigler/neat-charts) [![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/seigler/neat-charts/blob/master/LICENSE.txt)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#seiglerneat-charts---)

PHP project to generate clean-looking SVG price charts

[![Dash 24h price in BTC from Poloniex](https://camo.githubusercontent.com/3bf0fff1d95d4f36592a11e871e4128088fac20a2ddfa5409093a21ecd4ffb1e/687474703a2f2f63727970746f686973746f72792e6f72672f6368617274732f6461726b2f646173682d6274632f3330642f7376673f6c696e65436f6c6f723d314337344243)](https://camo.githubusercontent.com/3bf0fff1d95d4f36592a11e871e4128088fac20a2ddfa5409093a21ecd4ffb1e/687474703a2f2f63727970746f686973746f72792e6f72672f6368617274732f6461726b2f646173682d6274632f3330642f7376673f6c696e65436f6c6f723d314337344243)
30 days of Dash price in Bitcoin from Poloniex.com

Ethereum 7-day price in BTC from Poloniex [![Ethereum 7d price in BTC from Poloniex](https://camo.githubusercontent.com/fb78c675b8fcda45bf5071f00c8732f8d179ce6be7217fe959904e2a232d5dc1/687474703a2f2f63727970746f686973746f72792e6f72672f6368617274732f737061726b6c696e652f6574682d6274632f37642f737667)](https://camo.githubusercontent.com/fb78c675b8fcda45bf5071f00c8732f8d179ce6be7217fe959904e2a232d5dc1/687474703a2f2f63727970746f686973746f72792e6f72672f6368617274732f737061726b6c696e652f6574682d6274632f37642f737667)

More examples at [cryptohistory.org](http://cryptohistory.org/).

Requirements
------------

[](#requirements)

- PHP &gt;=5.3.0

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

To install using Composer, you will have to install Composer first.

`curl -s https://getcomposer.org/installer | php`

Create a composer.json file in your project root. Then run this command in your project folder:

`composer require seigler/neat-charts`

Tell Composer to install the required dependencies.

`php composer.phar install`

If you want to use the autoloading provided by Composer, add the following line to your application file.

`require 'vendor/autoload.php';`

You are now ready to use NeatCharts.

### Install NeatCharts manually

[](#install-neatcharts-manually)

Download the folder `NeatCharts` (in `src`) and place it alongside your php file. Add the following at the top of your PHP file:

```
spl_autoload_extensions(".php");
spl_autoload_register();
```

This will automatically require the correct files when they are referenced, since the namespace and class names match the folder structure.

Usage
-----

[](#usage)

```
Header('Content-type: image/svg+xml; charset=utf-8');

$chart = new NeatCharts/LineChart($chartData, [ // all parameters optional
  'width'=>800,
  'height'=>250,
  'lineColor'=>"#1C75BC",
  'labelColor'=>"#777",
  'smoothed'=>false
]);
print '';
print $chart->render();
```

In your HTML: ``

There are more demos available in `demo.php` and `demo-as-image.php`.

Available Options
-----------------

[](#available-options)

### LineChart

[](#linechart)

OptionDefaultwidth800height250lineColor'#000'markerColor'#000'labelColor'#000'smoothedfalsefontSize15yAxisEnabledtruexAxisEnabledfalseyAxisZerofalsefilledfalse### BarChart

[](#barchart)

OptionDefaultwidth600height300barColor'#000'markerColor'#000'labelColor'#000'fontSize15yAxisEnabledtruexAxisEnabledfalseyAxisZerotrue### CandlestickChart

[](#candlestickchart)

OptionDefaultwidth1200height300barColor'#000'risingFillColor'#0D0'fallingFillColor'#D00'markerColor'#000'labelColor'#000'fontSize15yAxisEnabledtruexAxisEnabledfalseyAxisZerofalseCredits
-------

[](#credits)

- Chart appearance based on advice found at

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/b31cce2eabf6cd2723b44d66141babb3d47aedb127f99e75f08c732e5a96e1a8?d=identicon)[seigler](/maintainers/seigler)

---

Top Contributors

[![seigler](https://avatars.githubusercontent.com/u/2583159?v=4)](https://github.com/seigler "seigler (72 commits)")

### Embed Badge

![Health badge](/badges/seigler-neat-charts/health.svg)

```
[![Health](https://phpackages.com/badges/seigler-neat-charts/health.svg)](https://phpackages.com/packages/seigler-neat-charts)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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