feat: add x-axis labels

This commit is contained in:
Joshua Seigler 2017-03-07 02:02:07 -05:00
parent d59dd86f14
commit d0f39f04ea
5 changed files with 86 additions and 42 deletions

View file

@ -3,7 +3,7 @@ require_once 'vendor/autoload.php';
function randomData($count = 20, $offsetMax = 100) {
$randomData = [];
$duration = 60 * 5 + rand() * 60 * 60 * 24;
$duration = 60 * 5 + rand()/getRandMax() * 60 * 60 * 24;
$begin = time() - $duration;
$offset = $offsetMax * (rand()/getRandMax())**2;
$scale = max(0.25 * $offset, 100 * rand() / getRandMax());