Documentation

CRM_Utils_Chart
in package

Build various graphs using the dc chart library.

Table of Contents

Methods

barChart()  : object
Build The Bar Graph.
buildChart()  : array<string|int, mixed>
chart()  : array<string|int, mixed>
commonParamsManipulation()  : array<string|int, mixed>
Common data manipulation for charts.
pieChart()  : array<string|int, mixed>
Build a pie chart.
reportChart()  : array<string|int, mixed>

Methods

barChart()

Build The Bar Graph.

public static barChart(array<string|int, mixed> $params) : object
Parameters
$params : array<string|int, mixed>

Assoc array of name/value pairs.

Return values
object

$chart object data used for client-side chart rendering (currently with dc chart library).

buildChart()

public static buildChart(array<string|int, mixed> &$params, string $chart) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>
$chart : string
Return values
array<string|int, mixed>

chart()

public static chart(array<string|int, mixed> $rows, string $chart, string $interval) : array<string|int, mixed>
Parameters
$rows : array<string|int, mixed>
$chart : string
$interval : string
Return values
array<string|int, mixed>

commonParamsManipulation()

Common data manipulation for charts.

public static commonParamsManipulation(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>

Assoc array of name/value pairs.

Return values
array<string|int, mixed>

pieChart()

Build a pie chart.

public static pieChart(array<string|int, mixed> $params) : array<string|int, mixed>
Parameters
$params : array<string|int, mixed>

Assoc array of name/value pairs.

Return values
array<string|int, mixed>

reportChart()

public static reportChart(array<string|int, mixed> $rows, string $chart, array<string|int, mixed> $interval, array<string|int, mixed> &$chartInfo) : array<string|int, mixed>
Parameters
$rows : array<string|int, mixed>
$chart : string
$interval : array<string|int, mixed>
$chartInfo : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results