Colour wheel
The code below is the source for this graph.
<?php
// Colour wheel
require_once 'SVGGraph/autoloader.php';
$step = 6;
$settings = [
'show_labels' => false,
'stroke_width' => 0,
'start_angle' => 270 - $step/2,
'show_tooltips' => false,
'back_stroke_width' => 0,
'pad_left' => 1,
'pad_right' => 1,
'pad_top' => 1,
'pad_bottom' => 1,
'sort' => false,
];
$values = [];
for($i = 0; $i < 360; $i += $step)
$values[] = 1;
$svg = new Goat1000\SVGGraph\SVGGraph(120, 120, $settings);
$svg->values($values);
$svg->colourRangeHSL(0, 0, 1, 0.5, 360 - $step, 1, 0.5, 1);
$svg->render('PieGraph');
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.