WordPress plugin intelligence profile

Protovis Loader

Creates a shortcode to faciliate the use of Protovis data visualization scripts in blog posts.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.0
Current version0.3.0
WordPress coverageTested up to WordPress 3.0
Minimum stackWP 2.8.0 · PHP —
Directory statusactive
Last directory update20 Sept 201016y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Protovis Loader version 0.3.0 as active, updated 16y ago and tested up to WordPress 3.0.

Overview

About this plugin

Protovis Loader is a plugin which faciliates the use of Protovis scripts. Protovis is a javascript data visualisation library being developed at Stanford, which allows the creation of interactive charts on web pages.

Incorporating Javascript code into WordPress posts can be tricky as it (deliberately) sanitises text typed into posts, which interferes with Javascript. When I first began experimenting with Javascript, this cause me some difficulties, as described in this post. In the end, I decided to roll up my sleeves and write a plugin to make the whole process a lot easier.

Protovis Loader was the result.

Protovis Loader makes the whole process a lot easier in two ways:

  • It ships with a copy of the Protovis javascript library and once the plugin is activated, links to the library will automatically be included in page headers.
  • It creates a shortcode called [pvis] which makes it very easy to include Protovis scripts in blog posts and pages.

Usage:

Simply use the [pvis] shortcode in your posts and pages where you want to include a Protovis chart. There are a number of optional parameters:

  • type: ‘chart’ (default) displays a chart in a box with an optional caption, ‘inline’ has no box (e.g. useful for sparklines)
  • src: path to a Protovis (javascript) code file
  • height: height of canvas box for the chart
  • width: width of canvas box for the chart
  • img: path to a fallback image to use when scripts are blocked or the browser does not support Protovis
  • alt: alt text for the fallback image
  • caption: image caption

If any content is supplied between the opening [pvis] tag and the closing [/pvis] tag, it is taken to be javascript for inclusion. It may also be interpreted as a caption, but only if a caption field is not supplied and a src field is supplied.

Here is an example of use of the tag:

[/pvis]

You can see the plugin in action on the Stubborn Mule.

To-Do List

This list is not really prioritised yet.

  • Improve user-agent (browser) detection
  • Create an options page
  • Allow custom CSS files
  • Allow for alterntive specification of the protovis js library
  • Replace tags in the imported script to allow shortcode parameters to be used in the script

I’m sure there’ll be a lot more!

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • data visualization
  • charts
  • graphics
  • images
  • javascript
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.0
Minimum requirementsWordPress 2.8.0 · PHP not listed
Update activity20 Sept 201016y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.