Home > Drupal, PHP > Customise Drupal Chart Module

Customise Drupal Chart Module

November 16th, 2009

Hello,

I wish to customise this Drupal charting module – http://drupal.org/project/issues/views_charts – so that data is plotted in columns, rather than rows.

Ie so that it can effectively chart data such as:

Fruit Apples Oranges Bananas
Percentage 20 30 50

At the moment it can only deal with

Fruit Percentage
Apples 20
Oranges 30
Bananas 50

The change requires adjusting a few lines of PHP code. However, I am not a PHP expert.

Ideally the module would be customised to give the user the option, within the webform, on whether to plot data in rows or columns. But, if that is too complex, I can accept a solution that just changes the rendering from rows to columns, without exposing the option within the webform.

I would like the solution, when completed, to be shared with the Drupal community.

I would also accept any solutions to this issue that use alternate modules or approaches within Drupal (or possibly that involve attaching some other technology to Drupal). In your bid, please mention your approach.


Customise Drupal Chart Module

Categories: Drupal, PHP Tags: , , , , , ,
Comments are closed.
Bear