If you want to make charts automatically from a Table in a Drupal page...

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
lorlarz2's picture

IF YOU LIKE the following auto-charting program: Shown working on:
http://mynichecomputing.org/drupal6/content/demo-auto-table-graphs-funct... and
the screen shoot of a similar auto-graphing page (this one with the Pie chart),
http://mynichecomputing.org/visualize/imageView.html

and if http://mynichecomputing.org/autoChartsDir.html and
http://mynichecomputing.org/autoChartsDir2.html make sense to you.

THEN

To make the program work on YOUR pages:
Download: http://mynichecomputing.org/shared/visualize.zip
and unzip it. Upload the resulting visualize folder to your
site's root.

Now, the directions in autoChartsDir.html and autoChartsDir2.html
should just be changed so the attribute in the iframe that reads,

src="http://mynichecomputing.org/visualize/jquery_plugin/tryit4.html" ,

now reads

src="http://[yourSiteRoot]/visualize/jquery_plugin/tryit4.html" .

That's it. Then just follow the directions in autoChartsDir.html and
autoChartsDir2.html when you make any page production in your Drupal
installation and make a table as described in autoChartsDir2.html you will
get a result like
http://mynichecomputing.org/drupal6/content/demo-auto-table-graphs-funct...
(Note: Editor rights, specifically: abililty to use Full HTML is required).


OPTION:

If you do not want an editable copy of your table to appear:
IN visualize/jquery_plugin/js in example4.js and example5.js :

Change: $(startw).clone(true).appendTo('body'); TO

$(startw).clone(true).css('display','none').appendTo('body');

AND delete the top paragragh in tryit4.html and tryit8.html

That's it.

Comments

There is a Drupal module, BUT ...

lorlarz2's picture

There is a Drupal module that is supposed to do this auto-graphing and auto-charting, but it is either hard to set-up and use or it does not work. I looked at it and tried. "My solution" is easy and reliable.

[Sometimes stepping out of drupal just a bit is a good way to go. I recommend a similar procedure if you want a decent chat -- put it in an iframe on your page and use my chat kit. THEN: It is in a Drupal page, but not in Drupal -- but then you at least have one (Drupal has no decent chat module). ]

Twin Cities

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week