Home › Forums › Chart Support › Need a Assistance to fetch and connect Bubble chart to mysql via PHP › Reply To: Need a Assistance to fetch and connect Bubble chart to mysql via PHP
@praveendb,
In gallery example, it accepts x and y-values from database and pass it to chart options as array_push($dataPoints, array("x"=> $row->x, "y"=> $row->y));. Changing it to accept z-values array_push($dataPoints, array("x"=> $row->x, "y"=> $row->y, "z"=> $row->z)); and changing type to “bubble” should work fine for you.
array_push($dataPoints, array("x"=> $row->x, "y"=> $row->y));
array_push($dataPoints, array("x"=> $row->x, "y"=> $row->y, "z"=> $row->z));
If you are still facing issue, kindly create sample project reproducing the issue you are facing and share it with us along with sample database over Google-Drive or Onedrive so that we can run it locally at our end, understand the scenario better and help you resolve.
— Vishwas R Team CanvasJS