Closed (fixed)
Project:
Webform
Version:
5.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2008 at 10:40 UTC
Updated:
11 May 2008 at 05:40 UTC
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
Comment #1
mandclu commentedIt 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.
Comment #2
quicksketchThis 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.
Comment #3
PWG commentedAgreed. 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
Comment #4
quicksketchClosing up to keep the issue queue a little shorter. Please open a new issue for any requests to improvements in the API.