Has anyone tried setting up webform results with some kind of charts? In my dream scenario non-tech users can create their own charts without assistance from a developer but for now I'll just settle for something less advanced.

I'm about to code a first, basic version of a such functionality for a site of mine so any input is welcome.

Petter

Comments

mandclu’s picture

It would be awesome if webform could integrate with SWF Charts, though from what I gather it might require a fair bit of work to get all the data formatted properly for SWF Charts.

quicksketch’s picture

This could make a good add-in module for webform, but I wouldn't want to maintain it as a central part of webform. Using the webform_get_submissions() function though, you could easily retrieve the entire set of submissions in an external module to generate all the necessary data for your charts.

PWG’s picture

Agreed. An add-in module is probably better. I'm working on a first modest version and will upload it asap. It probably won't be beautiful but will work as starting point for further discussions. I'm reusing the component thinking from the webform module so that one report can have one or more diagrams (or whatever) and so that more components can be added to the structure when needed. I would have wanted to use the chart api to let the user decide what chart vendor but for now, since Chart API is only availably for Drupal 6, I'm sticking with Google charts.

One thought so far regarding webform is that maybe webform_get_submissions() in the future can be complemented by an API with a couple of functions suited for categorized data which is what some popular diagrams (bar and circle) often are for. But first things first. I'll get back to you guys when I have produced something of value.

Petter

quicksketch’s picture

Status: Active » Closed (fixed)

Closing up to keep the issue queue a little shorter. Please open a new issue for any requests to improvements in the API.