Function __global->graph_stacked_bar_chart

Definitions

sources/graphs.php

  • Generate a stacked bar chart.Multiple measures across one large even dimension (x) and one uneven dimension (y).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$datasets array required parameter N/A N/A Data-sets to render
$labels array required parameter N/A N/A List of labels for datasets
$x_axis_label mixed Blank (empty string) N/A N/A X-axis label, provided in plain-text format (string or Tempcode)
$y_axis_label mixed Blank (empty string) N/A N/A Y-axis label, provided in plain-text format (string or Tempcode)
$options array [] N/A N/A Map of additional fiddly options
$color_pool ?array Null 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