Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHPで円グラフを作成し、mysql列の値を入力する方法はありますか?
40 ほどの異なる値を含む subject という列があり、円グラフを作成して上位 10 個の値を表示したいと考えています。rgraph を試してみましたが、まったく動作しません。より簡単にセットアップできるソリューションはありますか?
ORDER BY を使用して列を値でソートし、データベースから取得してから、PHP の for ループで最初の 10 個を取得して配列に保存できます。次に、配列から JavaScript 円グラフを作成できます。