Instructions:

2. Download jQuery Visualize Plugin from http://www.filamentgroup.com/lab/jquery_visualize_plugin_accessible_char...

3. Place the content of the ZIP file inside jquery_visualize/jquery_plugin

-----------

When I added the contents of the zip (which is quite large) the module still didn't work. So I opened up the module:

drupal_add_js(drupal_get_path('module', 'visualize').'/jquery_plugin/visualize.jQuery.js');
drupal_add_js(drupal_get_path('module', 'visualize').'/jquery_plugin/excanvas.compiled.js');
drupal_add_css(drupal_get_path('module', 'visualize').'/jquery_plugin/visualize.jQuery.css');
drupal_set_html_head('<!--[if IE]><script type="text/javascript" src="'.drupal_get_path('module', 'visualize').'/jquery_plugin/excanvas.compiled.js"></script><![endif]-->');

That's no where near similar to the contents of the ZIP...

CommentFileSizeAuthor
#2 visualize.module.txt7.22 KBjteague

Comments

javi-er’s picture

Thanks for the notice, the zip content have changed significantly since the first release of this module,
I'll make a new release soon adapted to the new version of the plugin.

jteague’s picture

StatusFileSize
new7.22 KB

First, this plugin for JQuery/Visualize is head and shoulders better than any other charting module I have looked into. It's flexibility alone makes it a winner.

Although this could certainly change, and really needs to, here is the method I used to correct the path issue when downloading the most current zip of visualize plugin code:

  1. Download package at: http://dwpe.googlecode.com/files/dwpe-code-public-latest.zip
  2. Unzip package and then move only dwpe-code-public-latest/charting directory to inside jquery_visualize/jquery_plugin (I also moved the root license file into the charting directory as well)
  3. When finished, the directory structure should be /visualize/jquery_plugin/charting
  4. You will then need to make a few changes to visualize.module
  5. visualize.module beginning near line 65

      	drupal_add_js(drupal_get_path('module', 'visualize').'/jquery_plugin/charting/js/visualize.jQuery.js');
      	drupal_add_js(drupal_get_path('module', 'visualize').'/jquery_plugin/charting/js/excanvas.js');
      	drupal_add_css(drupal_get_path('module', 'visualize').'/jquery_plugin/charting/css/visualize.css');
        drupal_set_html_head('<!--[if IE]><script type="text/javascript" src="'.drupal_get_path('module', 'visualize').'/jquery_plugin/charting/js/excanvas.js"></script><![endif]-->');
    

    Notice that this is where we need to correct the paths to the new plugin. Of course, you could play around with this method. This is just the one I decided to use. It does solve the problem noted earlier.

javi-er’s picture

Thanks for these instructions, I'm working on a new release that will solve a number of issues and I'll make sure to update the paths as you mentioned.

The jQuery Visualize plugin had many changes since the initial release and the folder structure changed more than one time, but hopefully the folder structure will remain the same for a time now.

verta’s picture

FYI, the internal structure has changed. The JS is in a js folder and the css is in a css folder.

Also, the excanvas.compiled.js file seems to be just excanvas.js now and visualize.jQuery.css is just visualize.css.

Still working on getting the module installed on the current release of the library. Looks really promising, any updates?