Hey, I want to Display a Pie Chart on my Website. The Pie Chart will show the amount of tasks each user has completed from the DB.
This will change over time, and the amount of users will likely increase as will the amount of tasks each user has completed.
So I am trying the following,
<?php
foreach($users as $user):
$dataPoints = array(
array("label"=> $user->username, "y"=> 590),
);
endforeach;
?>
<script>
However, it is just returning one Username.