File "backend.php"
Full Path: /home/analogde/www/CURL/Dev tableau/burndown/backend.php
File size: 302 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
header('Content-Type: application/json');
function generateCurvePoints() {
$points = [];
for ($x = 0; $x <= 50; $x++) {
$y = sin($x); // Exemple de fonction sinus
$points[] = ['x' => $x, 'y' => $y];
}
return $points;
}
echo json_encode(generateCurvePoints());
?>