Moodle: Google Charts Integration

Here’s a normal screengrab of a page visualizing the results of a poll in Moodle.

 

It’s a table, with the data accessed by /mod/choice:readresponses. By using the incredibly simple REST interface of Google Charts, we can instead make this.

 

 Because the visual style of the chart is a simple variable, it would very easy to give the user the ability to see the data visualized in different ways. We’ve also opened up the door to using the power Google Charts API, and we have a very simple way to export neat widgets of our visualized data.

 And of course, as Google improves its services, the integration gets better and better. And it’s all very straightforward for even a novice developer to use.

This was posted 3 years ago. Notes.