Topic breakdown with jqPlot
This is a demonstration of the jqPlot-based formats for the Semantic Result Formats extension, "jqplotbar" and jqplotpie".
Here are some ways to view the distribution of topics for opinion items on this wiki. The numbers seen here are the values of the Has number of opinion items property, which is itself set within the Topic template.
jqplotbar
[edit | edit source]The 20 most popular topics:
Vertical (the default):
{{#ask:|?Has number of opinion items|sort=Has number of opinion items|order=descending|limit=20|format=jqplotbar|height=600|width=700|charttitle=Most popular topics on Discourse DB|barcolor=green}}
Horizontal:
{{#ask:|?Has number of opinion items|sort=Has number of opinion items|order=descending|limit=20|format=jqplotbar|height=500|width=800|barcolor=blue|bardirection=horizontal}}
jQuery pie chart
[edit | edit source]The 10 most popular topics:
{{#ask:|?Has number of opinion items|sort=Has number of opinion items|order=descending|limit=10|width=700|format=jqplotpie}}