=== Plugin Name === Contributors: pacius Tags: graph, chart, weight loss, widget Requires at least: 2.0.1 Tested up to: 2.1.3 Stable tag: 0.9.7 Draws a line graph of single set of date related data. Graph can be made public (i.e. sidebar widget) and the data can be edited through dashboard. == Description == Draws a graph of single set of date related data. Graph can be made public (i.e. sidebar widget) and the data can be manipulated through dashboard. Many people use this plugin for weight tracking on their blogs (as do I), but it has been used for many other things as well. Only requirement - or rather a constraint - is that the horizontal axis of the graph shows dates. The vertical axis can hold any values. == Installation == Requires that your PHP installation has GD support enabled. The plugin's configuration page shows information on this. First of all, backup your Wordpress files and database! Installation of this plugin shouldn't do any harm, but since I've done absolutely no testing besides using it on my WP 2.0.3 platform, I cannot guarantee it's entirely bug free. Also, this is my first ever WP plugin, which I created both for fun and to learn the art of making plugins. So, this plugin is provided AS IS, and installation and usage of this plugin is entirely at your own risk. I will not assume any responsibility for any possible damages. (Although it still isn't supposed to cause any damages.) Extract either one of the packages above in your Wordpress plugins folder (wp-content/plugins/) and then activate the plugin through your Wordpress administration. The activation sets up initial configuration options and creates the database table ($table_prefix.'pjm_graph') for the plugin data. Please make sure that you upload/extract the pjm_graph folder entirely in your plugin folder, and not just the contents of it! Your folder structure should look like this: * wp-content/plugins/ o pjm_graph/ + pjm_graph.php + grapher/ # graph.php Finally, insert a code similar to the one below to your Wordpress theme, for example in the sidebar.php file. The essential part is calling the pjm_graph() function. `
  • The Project


    About this graph plugin…
  • ` Installation is now complete! There are some parameters to that function though, so if you want to make your graph look different, you might want to check these out. You can override width and height of the graph with function parameters. Also, as of v0.9.3 it is possible to add optional trend graph with a boolean flag. In version 0.9.6 further parameters (target, ytd, lm, and wkly) were added. See the function declaration below. void pjm_graph($WIDTH, $HEIGHT, $TREND, $TARGET, $YTD, $MTD, $WKLY); Zero (0) values for WIDTH and HEIGHT preserve the default width and height that are specified in the admin panel. Any other values override the default. TREND, TARGET, YTD, MTD and WKLY parameters expect a boolean value, which is either TRUE or FALSE. By default they're all FALSE. If TREND is TRUE, gliding trend graph appears. If YTD is TRUE, only the values from last year are used in the graph. If MTD is TRUE, only the values from last month are used. (If YTD is TRUE, value of MTD is irrelevant.) If WKLY is TRUE, rough weekly average values will be calculated instead of daily values where possible. TARGET is not fully implemented yet and thus its value has no meaning at the moment. == Frequently Asked Questions == = How about multiple graphs? = If a 1.0 release is ever finished, it will support multiple graphs. However, don't hold your breath. == Screenshots == 1. Data management page 2. Plugin configuration page