mirror of
https://github.com/seigler/neat-charts
synced 2025-07-26 17:06:09 +00:00
feat: add x-axis labels
This commit is contained in:
parent
d59dd86f14
commit
d0f39f04ea
5 changed files with 86 additions and 42 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue