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.

OpenSpending

Description

The OpenSpending community project aims to build and use open source tools and datasets to gather and analyse the financial transactions of governments around the world.

Only by understanding the financial transactions that are made in their name can citizens hope to hold government to account, and begin to effect positive change they wish to see in the world.

The OpenSpending WordPress plugin provides an easy-to-use visualisation creator for financial data hosted on OpenSpending.org. Emphasis is on making the interface more user friendly than configurable.

Via a simple popup, users fill in necessary details of the dataset they want to visualise. This creates a shortcode that can be placed on pages or in blog posts to render beautiful, interactive, tried and tested visualisations which OpenSpending is known for.

Screenshots

  • Simple, elegant user interface to create visualisations
  • Treemap visualisation
  • Bubbletree visualisation
  • Bar chart visualisation

Installation

To install the OpenSpending WordPress plugin follow these steps:

  1. Extract the zip file and put the included openspending directory into the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The visualisation wizard should now be available in the WordPress editor

FAQ

Can I change the default configurations?

The WordPress plugin focuses more on simplicity of use than feature completeness. If you are interested in more configurations, please consider using the OpenSpending visualisation library directly (the plugin creates a clean user interface on top of that library).

The bubbletree visualisation doesn’t work

Unfortunately, in the current implementation of the bubbletree visualisation there are a few errors. One is the assumption that it is impossible to drill down (click on) bubbles with only a single child (irrespective of if that child has more children). Another is the assumption that all children will have at least two other sibling bubbles. The third, and possibly the biggest problem is that because the bubbletree works via the URL more than one bubbletree per page is not possible.

How do I get the cool OpenSpending icons?

For both the bubbletree and the bar charts, the OpenSpending icons are automatically loaded for dimensions defining COFOG classifications. Simply choose the COFOG dimensions as the drilldowns.

Can I create time series?

Yes! You could for example use the bar chart and just choose your time dimension. Note that this will write out the full date. If you want to for example only show the time as the year, you would have to change the drilldown dimension in the generated shortcode from time to year.

Aren’t the historical amounts wrong because of inflation?

Not necessarily. The plugin tries to do automatic inflation adjustment based on consumer price index data available for last year. If it cannot find the needed data then it doesn’t do the adjustments and falls back to historical values.

Contributors & Developers

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

Contributors

Changelog

0.5.1

  • Initial release onto the WordPress plugin repository
  • Treemap visualisation
  • Bubbletree visualisation
  • Bar chart visualisation
  • Automatic inflation adjustment if possible
  • Automatic icons and colors for COFOG dimensions