2017 © Pedro Peláez
 

elgg-plugin charts_api

FusionCharts integration on Elgg

image

nlybe/charts_api

FusionCharts integration on Elgg

  • Tuesday, December 13, 2016
  • by nlybe
  • Repository
  • 2 Watchers
  • 2 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

Charts API for Elgg

Elgg 5.0, (*1)

Chart.js 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., (*2)

At the moment plugin offers the option to create a simple Bar Chart., (*3)

How to Use

The sample code below will create a Bar Chart., (*4)

// 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

  • [ ] Make a class for charts, so all parameters will be passed by using methods of this class
  • [ ] Integrate more options from Chart.js like select type of chart, chart styling etc

The Versions

13/12 2016

dev-master

9999999-dev https://github.com/nlybe/Elgg-ChartsAPI

FusionCharts integration on Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin charts elgg fusioncharts

07/12 2016

2.2.2

2.2.2.0

  Sources   Download

GPL-2.0

The Requires