function statspro_chart_summary in Statistics Pro 6.2
Same name and namespace in other branches
- 6 statspro.reports.inc \statspro_chart_summary()
General chart function for overview page.
Parameters
<string> $title:
<array> $stats:
Return value
<string>
1 call to statspro_chart_summary()
File
- ./
statspro_overview.inc, line 183
Code
function statspro_chart_summary($title, $stats) {
$data = array();
$x_labels = array();
foreach ($stats as $result) {
$data[strip_tags($result[0])] = array(
$result[1],
);
}
if (count($data) == 0) {
return '';
}
else {
return statspro_get_bar_chart($title, $data, array(
'quantity',
), TRUE);
}
}