Extension:Semantic Result Formats/jqplotbar and jqplotpie formats

The result formats jqplotbar and jqplotpie, both part of the Semantic Result Formats extension, create a bar chart and a pie chart, respectively, based on property values, using the jqPlot Javascript library.

Examples
jqplotbar:

jqplotpie:

See here for a live example.

Usage
You use the same queries as usual, but make sure to add a printout statement with a property that is of type Number. All printouts of properties of type number will be taken for the visualization.

The special parameters for 'jqplotbar' are:
 * height= - the height of the entire chart, in pixels (default is 400)
 * width= - the width of the entire chart, in pixels (default is 150)
 * charttitle= - the title that appears at the top of the chart (default is none)
 * barcolor= - the color of the bars (default is olive green)
 * bardirection= - the direction of the bars; can be either "vertical" or "horizontal" (default is vertical)
 * numbersaxislabel - the label placed on the side of the graph that has numbers (default is none)

The special parameters for 'jqplotpie' are:
 * height= - the height of the entire chart, in pixels (default is 400)
 * width= - the width of the entire chart, in pixels (default is 400)
 * charttitle=</tt> - the title that appears at the top of the chart (default is none)

You may want a chart to not show property values directly, but rather the popularity of different values of a property across the entire wiki; i.e. a numerical distribution. This is fairly easy to do; see here for how.

Common problems

 * For bar charts, if you set the height or width too small, only the labels will appear and not the actual bars. If that happens, you just have to increase the height and/or width until the whole chart appears.