Hue filters
The code below is the source for this graph.
<?php
// Hue filters
require_once 'SVGGraph/autoloader.php';
$settings = [
'auto_fit' => true,
'back_stroke_width' => 0,
'grid_colour' => '#666',
'stroke_width' => 2,
'show_tooltips' => false,
'axis_font_size' => 12,
'grid_division_v' => 2,
];
$values = [
'default' => 11,
'-90' => 10,
'-20' => 9,
'no filter' => 10,
'20' => 9,
'90' => 10
];
$colours = [
'#b04040/hue',
'#b04040/hue(-90)',
'#b04040/hue(-20)',
'#b04040',
'#b04040/hue(20)',
'#b04040/hue(90)',
];
$graph = new Goat1000\SVGGraph\SVGGraph(670, 200, $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.