PHPackages                             nlybe/charts\_api - 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. [API Development](/categories/api)
4. /
5. nlybe/charts\_api

ActiveElgg-plugin[API Development](/categories/api)

nlybe/charts\_api
=================

FusionCharts integration on Elgg

5.5(2y ago)2391GPL-2.0PHP

Since Dec 7Pushed 2y ago2 watchersCompare

[ Source](https://github.com/nlybe/Elgg-ChartsAPI)[ Packagist](https://packagist.org/packages/nlybe/charts_api)[ Docs](https://github.com/nlybe/Elgg-ChartsAPI)[ RSS](/packages/nlybe-charts-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (6)Used By (0)

Charts API for Elgg
===================

[](#charts-api-for-elgg)

[![Elgg 5.0](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

[Chart.js](http://www.chartjs.org/) integration in Elgg. This plugin offers an API which can be used from other plugins on Elgg platforms in order to populate information in charts using the Chart.js.

At the moment plugin offers the option to create a simple Bar Chart.

How to Use
----------

[](#how-to-use)

The sample code below will create a Bar Chart.

```
// set an array with labels
$ch_labels = [];
// set an array with data
$ch_data = [];

$entities = elgg_get_entities($options);
foreach (entities as $e) {
    array_push($ch_labels, $e->title);
    array_push($ch_data, calculate_likes($e));
}
$vars['ch_labels'] = $ch_labels;
$vars['ch_data'] = $ch_data;

echo elgg_view('charts_api/charts_api', $vars);
```

Future Tasks List
-----------------

[](#future-tasks-list)

- Make a class for charts, so all parameters will be passed by using methods of this class
- Integrate more options from [Chart.js](http://www.chartjs.org/docs/) like select type of chart, chart styling etc

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~611 days

Total

5

Last Release

1046d ago

Major Versions

2.3.x-dev → 3.32019-01-03

3.3 → 4.42023-07-11

4.4 → 5.52023-08-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b3b4c3ed45bff26900a422f0271d660579bb6a309428222fabeedc2329b7979?d=identicon)[nlybe](/maintainers/nlybe)

---

Top Contributors

[![nlybe](https://avatars.githubusercontent.com/u/4714025?v=4)](https://github.com/nlybe "nlybe (11 commits)")

---

Tags

pluginelggchartsfusioncharts

### Embed Badge

![Health badge](/badges/nlybe-charts-api/health.svg)

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[sybrew/the-seo-framework

An automated, advanced, accessible, unbranded and extremely fast SEO solution for any WordPress website.

47882.8k](/packages/sybrew-the-seo-framework)

PHPackages © 2026

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