Brightness filters
The code below is the source for this graph.
<?php
// Brightness 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,
'50%' => 10,
'75%' => 9,
'no filter' => 10,
'150%' => 9,
'200%' => 10
];
$colours = [
'#b04040/brightness',
'#b04040/brightness(50%)',
'#b04040/brightness(75%)',
'#b04040',
'#b04040/brightness(150%)',
'#b04040/brightness(200%)',
];
$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.