Looking for Donut Chart code?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
itmagician
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jun 09, 2018 7:38 am

Sun Jun 10, 2018 5:14 am

Hi -

I have used LIBCHART (https://naku.dohcrew.com/libchart/pages/introduction/) in my scripts - very easy.

Have also created stacked bar charts in html/ccs.

Now I want something simple to add into my scripts for donut charts.

Have googled and have not found anything that clicks for me - Any suggestions??

Thank you!

element121
php-forum Fan User
php-forum Fan User
Posts: 622
Joined: Sat Jun 06, 2015 11:46 am
Contact:

Sun Jun 10, 2018 7:01 am

Hi,

I've Google charts before, this is there Donut chart:
https://developers.google.com/chart/int ... onut-chart

Regards,
Jon

itmagician
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jun 09, 2018 7:38 am

Sun Jun 10, 2018 1:44 pm

Thanks for the reply Jon,

Two reasons I have passed on the google charts: don't want to be tied to an external source which go away and secondly it's java script based and I don't see how I can dynamically pass data values to the JS.

On another board, someone sent me some code that I am working on to make it dynamically adjust to my varying data...

element121
php-forum Fan User
php-forum Fan User
Posts: 622
Joined: Sat Jun 06, 2015 11:46 am
Contact:

Mon Jun 11, 2018 7:54 am

You could use some JS/AJAX to update the chart with values from PHP.

Post Reply