WordPress.org

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Fotherplot

A WordPress plugin for plotting some data in a custom field against time. It uses the Google charts API to render a simple line chart.

How do I display the fotherplot chart on my blog?

By default the fotherplot chart is only non-publically displayed in the settings page in the WordPress dashboard. You have three options to display the fotherplot chart on the public side of your blog:

  1. To display the chart on any post or page, simple embed the text "[fotherplot]" into the content. The tag will be replaced with the chart image.
  2. If you want to display the chart on a page:
    1. Copy the page_fotherplot.php page template from the plugin directory to the folder of the theme you're currently using (/wp-content/themes/<currentThemeName>/).
    2. From the WordPress dashboard, create a new page.
    3. From the "Template" dropdown in the sidebar, select "Fotherplot".
    4. Use preview to check it works (remember you need to have a couple of values input before you'll see a chart).
  3. An alternative method to display the chart somewhere specific (e.g. in a post):
    1. Install the phpexec.php plugin so you can run PHP code from pages and posts. Activate this plugin from the dashboard.
    2. To plot the chart, in one of your pages or posts, put the following: <phpcode><?php echo plotDataAgainstTime(); ?></phpcode>. You can just display the chart or just the data list (or both). See the parameter options below.

What are the parameters that can be passed to the "plotDataAgainstTime()" function?

  1. Optional Parameter 1: Name of custom field. This is not necessary because by default the custom field specified in the settings page is used but you can use this if you want to override the default (i.e. Only really useful if you want to chart more than one custom field).
  2. Optional Parameter 3: Whether to show chart image. 1=yes, 0=no. Defaults to yes.
  3. Optional Parameter 4: Whether to show list of custom values. 1=yes, 0=no, Defaults to yes.
    1. Examples:
<phpcode>
<?php echo plotDataAgainstTime("customFieldName"); ?>
<?php echo plotDataAgainstTime("customFieldName",1,0); ?>
<?php echo plotDataAgainstTime("customFieldName",0,1); ?>
</phpcode>
  1. You can also use the same parameters in the shortcode: [fotherplot customfieldname="mycustomfield" showgraph=1 showlist=1].

Requires: 2.5 or higher
Compatible up to: 3.3.2
Last Updated: 2012-3-4
Active Installs: 30+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1
100,1,1
100,1,1