使用mysql表从php创建饼图 [英] Create pie chart from php using mysql table
本文介绍了使用mysql表从php创建饼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个如下所示的mysql表
I have a mysql table like below
buy_trader qty
--------------------
abc 48000
xyz 40000
pqr 35000
Others 88000
我需要使用PHP代码从这些值创建一个饼图.有人可以帮我这个忙吗?我需要在饼图中显示数量占总价值的百分比.
I need to create a pie chart from these values using PHP code. Can someone please help me with this. I need to show the percentages of qty out from the total value in the pie chart.
请帮助我
推荐答案
使用 Google图表, JpGraph 或 GraPHPite
这篇关于使用mysql表从php创建饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文