WordPress Plugin

The Multigraph WordPress plugin makes it easy to create graphs on pages in a WordPress site.

To install the plugin, download the plugin zip file from the Multigraph download page, and unzip it into the "wp-content/plugins" directory in your copy of WordPress. Then login to WordPress as an administrator and enable the plugin. Also, add "text/xml" and "text/csv" to WordPress's list of allowed file types, in the "Mime Types" section under WordPress's "Settings" menu.

Once the plugin is enabled and WordPress is configured to allow text/xml and text/csv mime types, follow these steps to add a graph to any post:

  1. Compose a MUGL file that defines your graph
  2. Upload your MUGL file to WordPress's Media Library; give the file a "title" that is the same as the name of the file. This is important; for example, if your file is named "mymugl.xml", enter "mymugl.xml" in the "Title" field when uploading the file. You can leave the "Caption" and "Description" fields blank.
  3. In the body of the post where you'd like the graph to appear, insert text like the following

    [multigraph width=800 height=300 mugl=mymugl.xml]

    where "mymugl.xml" is replaced with the name (title) of the MUGL file you uploaded, and the width and height are set to whatever you prefer. You can create as many graphs using the same MUGL file as you want --- just enter text like the above at each place where you want a graph to appear.

To make a change to a MUGL file that you have uploaded, delete the original MUGL file from the media library, then upload the new file, giving it the same name (and title) as the old one.