How to create simple bar graphs from attempt.php

How to create simple bar graphs from attempt.php

by Ishani Vardhan -
Number of replies: 0
Hello

I have created a link in attempt.php file which opens up to another file known as studenthelp.php. This file contains the code that gives the count of each option students in past might have chosen for a particular question. This would act like a hint answer for that particular question.
But I would like to reveal a graph that shows the count of people choosing a particular option on Y-Axis and the option names on X-axis.
I created another file studentgraph.php which contains the code that creates the graph.
When i tried inserting this graph like an image in studenthelp.php, it gives no error, but doesn't show the image and instead prints some junk values on screen.
Please guide me so as to what I am missing in order to get the graph.

Regards
Average of ratings: -