This patch adds a basic Drupal theme function and simple jQuery wrapper around gRaphael.
jQuery bindings work like this:
// Render a bar graph on the my-graph div
$('div.my-graph').graphael('bar', [0, 5, 10, 15]);
Drupal theme function works like this:
$values = array(5, 10, 15);
theme('graphael', 'pie', $values);
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 797364_drupal_api_v9.patch | 13.54 KB | yhahn |
| #8 | 797364_drupal_api_v8.patch | 12.72 KB | yhahn |
| #7 | 797364_drupal_api_v7.patch | 12.73 KB | yhahn |
| #6 | 797364_drupal_api_v6.patch | 12.49 KB | yhahn |
| #5 | 797364_drupal_api_v5.patch | 12.5 KB | yhahn |
Comments
Comment #1
yhahn commentedAnother revision of this patch is coming that adds simple shortcuts for hover/labeling behaviors.
Comment #2
yhahn commentedDrupal.settings.graphael[graph]for storing additional data that may be used in hovers, other graph interactions.extend.labelCurrently tracking patch work here: http://github.com/yhahn/raphael
Comment #3
Will White commentedNew version of this patch that fixes an issue with flickering labels.
Comment #4
Will White commentedNew version that adds the the "graphaelProcessed" class.
Comment #5
yhahn commentedFix for $().graphael.elementPosition() method.
Comment #6
yhahn commented#Fail. Removing stray
console.log()Comment #7
yhahn commentedNew update.
Introduces
attach.drupalconvention to allow others to bind to the graphael graph prior to initialization.Comment #8
yhahn commentedSmall fix for
attach.drupaltrigger.Comment #9
yhahn commentedAdding extension for handling clickable graph elements.
Comment #10
miklSorry for not following up on this earlier, it seems I have failed to enable e-mail notifications for this module. This stuff looks awesome :)
Comment #11
miklI’ve merged this into HEAD. If nothing crops up the next couple of days, I’ll release this as beta2, and use that as a starting point for porting this module to Drupal 7.