dev-master
9999999-dev https://github.com/nlybe/Elgg-ChartsAPIFusionCharts integration on Elgg
GPL-2.0
The Requires
- php >=5.6
- composer/installers >=1.0.8
by Nikos Lyberakis
plugin charts elgg fusioncharts
FusionCharts integration on Elgg
, (*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)
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);
FusionCharts integration on Elgg
GPL-2.0
plugin charts elgg fusioncharts