Function __global->graph_pie_chart
Definitions
sources/graphs.php
- Generate a pie chart.1 measure across one small even dimension (different segments) and one uneven dimension (angle) [unlabelled dimensions].
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$datapoints | array | required parameter | N/A | N/A | Data-points to render |
$options | array | [] | N/A | N/A | Map of additional fiddly options |
$color_pool | ?array | [] | N/A | N/A | Colour pool to use (null: default colour pool) |
$width | ?string | Null | N/A | N/A | Width (null: responsive) |
$height | ?string | Null | N/A | N/A | Height (null: responsive) |
Return
- The chart
- Type: Tempcode
- Set: N/A
- Range: N/A