Function __global->graph_line_chart

Definitions

sources/graphs.php

  • Generate a line chart.Multiple measures across one 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
$x_labels ?array Null N/A N/A Labels for X-axis (null: numeric sequence for each data point, based on first set of data points)
$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