Home › Forums › Chart Support › PHP Foreach loop the dataPoints for Chart › Reply To: PHP Foreach loop the dataPoints for Chart
@mhiggins,
Ideally, the code snippet shared above should loop through the variable user values in the $users array. As we are not knowing the exact length of the $users array, can you kindly create a sample project reproducing the issue you are facing and share it with us over Google-Drive or Onedrive so that we can run the sample locally at our end to understand the scenario better and help you out?
user
$users
You can also refer to this gallery page for an example on creating a chart using data from the database in PHP.
— Shashi Ranjan Team CanvasJS