You can test this “memory leak” with the HTML code and this “sample” PHP
file: data.php
<?php
$data_points = array();
for ($i = 1; $i <= 10; $i++) {
$timestamp = time() -($i*60)."000";
$random = rand(20, 30);
$point = array("x" => $timestamp, "y" => $random);
array_push($data_points, $point);
}
echo json_encode($data_points, JSON_NUMERIC_CHECK);
?>
Where am I doing wrong?
I’m interested in buying the license if it works