PHPackages                             purelightme/libchart - 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. purelightme/libchart

ActiveLibrary

purelightme/libchart
====================

支持中文的PHP图表制作，可直接生成图片文件

429PHP

Since Dec 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Purelightme/libchart)[ Packagist](https://packagist.org/packages/purelightme/libchart)[ RSS](/packages/purelightme-libchart/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

libchart
========

[](#libchart)

libchart for php bar/line/pie chart.support chinese

step1
-----

[](#step1)

composer require purelightme/libchart:dev-master

step2
-----

[](#step2)

$chart = new VerticalBarChart(500, 250);
$dataSet = new XYDataSet();

$dataSet-&gt;addPoint(new Point("蓄电池",878));
$dataSet-&gt;addPoint(new Point("空气滤清器",560));
$dataSet-&gt;addPoint(new Point("前减震器",429));
$dataSet-&gt;addPoint(new Point("后制片器",72));
$dataSet-&gt;addPoint(new Point("前制动盘",1));
$dataSet-&gt;addPoint(new Point("雨刷器",1));
$dataSet-&gt;addPoint(new Point("后减震器",1));

$chart-&gt;setDataSet($dataSet);
$chart-&gt;setTitle("配件统计信息");
$chart-&gt;render("v\_bar.png");

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

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/9ea34f030f553da5724d3203f3b82ab57839fee67c5de90c56425dd0c9ce38c8?d=identicon)[Purelightme](/maintainers/Purelightme)

---

Top Contributors

[![Purelightme](https://avatars.githubusercontent.com/u/16385534?v=4)](https://github.com/Purelightme "Purelightme (14 commits)")

### Embed Badge

![Health badge](/badges/purelightme-libchart/health.svg)

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

PHPackages © 2026

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