Function __global->graph_bar_chart

Definitions

sources/graphs.php

  • Generate a bar chart.1 measure 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
$datapoints array required parameter N/A N/A Data-points to render
$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 [] 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