Display table data as a chart of some kind using PHP?

This is probably beyond my puny skills, but I am wondering if it is possible to display survey data as a chart using PHP??

I made and online survey for the students to carry out, and the results are saved MySQL. I can display the results as a table in a webpage, that works fine.

I just thought, maybe it is possible to show a chart of the results.

The table has 4 rows and 15 columns.

row 1 is the column headers, gender, A … M, Totals (A to M are all different choices for 1 question)

then rows 2, 3 and 4, column 1 as genders: male, female, other in the first column

The rest of the columns are filled according to the results of the survey, all integers

Is there some way to show the results as a chart??

It’s a lot to code by yourself, but there are plenty of packages that will do the same thing. Do a web search for “php chart generator” and see what there is.

1 Like

Here’s a link that might help you - Creating Dynamic Data Graph using PHP and Chart.js - Phppot

1 Like

@skawid @Strider64

Thanks for the tips!
I’ll try to implement it! Not very confident though!

Sponsor our Newsletter | Privacy Policy | Terms of Service