Looks like risk is being output as a string instead of an integer but this 
is not enough information to say categorically.

On Thursday, 3 November 2022 at 15:18:54 UTC+11 megga...@gmail.com wrote:

> Hello,
>
> I have developed a dashboard on my local computer using Xampp, PHP and 
> MySql. Everything works great. But, when I upload it to my server I get the 
> following error:
> "Data column(s) for axis #0 cannot be of type string"
> Here is the php code in the php file to call data from the MySql database.:
>
>          var data = google.visualization.arrayToDataTable([
>         ['Risk', 'Count',],
>           <?php
>           WHILE ($row = mysqli_fetch_array($AuditRiskRatingBarResult))
>           {
>             echo "['".$row["risk"]."', ".$row["tally"]."],"; 
>           }
>           ?>
>       ]);
>
> Again, it works as expected on two computers I have set up using Xampp. 
> Pleas help.
>
> Thank you.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/e410a809-c3e4-4548-81de-932a3340e8a3n%40googlegroups.com.

Reply via email to