| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
/**
* Colours.
* @var array
- * @static
*/
private static $_colours = array(
"#C3CC38",
*
* @return object
* $chart object of open flash chart.
- * @static
*/
public static function &barChart(&$params) {
$chart = NULL;
*
* @return object
* $chart object of open flash chart.
- * @static
*/
public static function &pieChart(&$params) {
$chart = NULL;
*
* @return object
* $chart object of open flash chart.
- * @static
*/
public static function &bar_3dChart(&$params) {
$chart = NULL;
foreach ($rows['multiValue'] as $key => $val) {
$graph[$key] = array_combine($dateKeys, $rows['multiValue'][$key]);
}
- $chartData =
- array(
- 'legend' => "$legend " . CRM_Utils_Array::value('legend', $rows, ts('Contribution')) . ' ' . ts('Summary'),
- 'values' => $graph[0],
- 'multiValues' => $graph,
- 'barKeys' => CRM_Utils_Array::value('barKeys', $rows, array()),
- );
+ $chartData = array(
+ 'legend' => "$legend " . CRM_Utils_Array::value('legend', $rows, ts('Contribution')) . ' ' . ts('Summary'),
+ 'values' => $graph[0],
+ 'multiValues' => $graph,
+ 'barKeys' => CRM_Utils_Array::value('barKeys', $rows, array()),
+ );
}
// rotate the x labels.
foreach (array(
'xSize',
'ySize',
- 'divName'
+ 'divName',
) as $f) {
if (!empty($rows[$f])) {
$chartData[$f] = $rows[$f];
foreach (array(
'xSize',
'ySize',
- 'divName'
+ 'divName',
) as $f) {
if (!empty($rows[$f])) {
$chartData[$f] = $rows[$f];
return $openFlashChart;
}
+
}