Less nauseating example

The code below is the source for this graph.

<?php
// Less nauseating example
require_once 'SVGGraph/autoloader.php';

$settings = [
  'auto_fit' => true,
  'pad_bottom' => 1,
  'back_stroke_width' => 0,
  'grid_colour' => '#ccc',
  'axis_font_h' => 'Arial',
  'axis_font_size_h' => 13,
  'show_tooltips' => false,
  'grid_division_v' => 5,
  'figure' => [
    ['round',
    [ 'circle', 'cx' => 4, 'cy' => 4, 'r' => 3, 'stroke' => 'blue' ],
    [ 'circle', 'cx' => 6, 'cy' => 6, 'r' => 3, 'stroke' => 'blue' ],
    [ 'circle', 'cx' => 5, 'cy' => 5, 'r' => 5, 'stroke' => 'red' ],
    ],
  ],
];
$width = 670;
$height = 100;

$values = [
  'cross' => 10,
  'check' => 8,
  'circle' => 10,
  'line2' => 8,
  'line4' => 10,
  'polkadot2' => 8,
];

$colours = [
  ['#f66', 'pattern' => 'cross', 'back_colour' => '#f99', 'angle' => 45],
  ['#666', 'pattern' => 'check', 'back_colour' => '#999', 'size' => 20],
  ['#696', 'pattern' => 'circle', 'back_colour' => '#363', 'size' => 20],
  ['#66f', 'pattern' => 'line2', 'back_colour' => '#399', 'angle' => 22.5, 'size' => 5],
  ['#f66', 'pattern' => 'line4', 'back_colour' => '#f99', 'angle' => -80],
  ['#ccf', 'pattern' => 'polkadot2', 'back_colour' => '#99c'],
];

$graph = new Goat1000\SVGGraph\SVGGraph($width, $height, $settings);
$graph->colours($colours);
$graph->values($values);
$graph->render('BarGraph');

Please note: the source code above comes from a script used to generate one of the example graphs on the site. This is simply a wrapper page to apply highlighting and make the source code easier to read, so there is no content here to describe what the source code is doing.