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.

CALgraph

Description

Howto Video. The x axis shows dates. Variables can be added/deleted and drawn as lines, asterisk, cross or triangle. As data is entered graph appears below. If mistake made entering data, data point can be deleted and graph is redrawn. When complete right-click graph and copy location, go to Editor “Add Image” and paste in location or “Browse Server” and select graph. Graph is drawn as .png file in (wp-content/uploads). Requires php-image-graph, php-image-canvas, php-gd, php-pear, Image_Color. Calgraph grew out of Simple Graph by Pasi Matilainen.

Screenshots

  • Data entered here.
  • Graph appearing below. Above graph: list of data points entered.

Installation

  1. Unzip calgraph.zip in /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Check /wp-content/uploads/ exists and is writeable by webserver (permissions of 755 sufficient if owned by webserver user)
  4. Requires php-image-graph, php-image-canvas, php-gd, php-pear, Image_Color installed (See below).

To Install Requirements:

On OS like Ubuntu:

# apt-get install php-image-graph php-image-canvas (Will also install php-pear and php-gd as dependencies)

# pear install Image_Color

FAQ

The graph is not drawn or redrawn with the new data I just added or deleted

Your browser may be caching older image: clear cache. You can also set browser to check site for new image on each visit instead of using its cache.

I logged in and can’t find my graph

Graphs are created per user and named “username””graph#”_calgraph.png (like admin1_calgraph.png). You can’t view other users graphs from CALgraph page. You can though publish other users graphs if you know username and graph# – “Add Image” in Editor and “Browse Server” for file.

The data appears as a list below but no graph

Check /wp-content/uploads/ exists and is writeable by webserver (permissions of 755 sufficient if owned by webserver user). You can verify this is likely the problem by opening /wp-content/plugins/calgraph/calgraph.php and commenting out line:19

Change

error_reporting(1); 

to

//error_reporting(1); 

Retry Update/Display Graph and if you see warning similar to: Warning: imagepng() [function.imagepng]: Unable to open ‘../wp-content/uploads/admin1_calgraph.png’ for writing: Permission denied in /usr/share/php/Image/Canvas/GD/PNG.php on line 119

Make sure uploads directory exists and has sufficient write permissions. When graph appears ok change line:19 back to what it was.

Contributors & Developers

“CALgraph” is open source software. The following people have contributed to this plugin.

Translate “CALgraph” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.