Help:Jqplotpie format
From semantic-mediawiki.org
| Jqplotpie format | |
|---|---|
| Produces a pie chart using the jqPlot Javascript library | |
| Scenario | |
| Scenario: | JqPlot Pie |
| Further Information | |
| Provided by: | Semantic Result Formats |
| Added: | 1.5.1 |
| Removed: | still supported |
| Requirements: | none |
| Format name: | jqplotpie |
| Enabled by default:info.pngIndicates whether the result format is enabled by default upon installation of the respective extension. | yes |
| Authors: | Sanyam Goyal, Yaron Koren, MWJames |
| Categories: | charts |
| Table of Contents | |
The result format jqplotpie, part of Semantic Result Formats, is used to display a pie chart of number values, using the jqPlot Javascript library.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| distribution | Yes/no | no | Instead of displaying all values, count their occurrences, and show these. |
| distributionsort | Text | none | Sort the value distribution by occurrence count. |
| distributionlimit | Whole number | 13 | Limit the value distribution to the count of only some values. |
| height | Whole number | 400 | The height of the chart, in pixels |
| width | Text | 400 | The width of the chart, in pixels |
| charttitle | Text | The title of the chart | |
| chartlegend | Yes/no | yes | Display chart legend |
| legendlocation | Text | ne | Set legend location |
| datalabels | Yes/no | no | Display pie data labels |
| datalabeltype | Text | Set data label type |
Possible values of datalabeltype are: 'percent', 'value', 'label'
Usage
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 displaying numerical distributions for how.
Example
{{#ask:
[[Category:City]] [[located in::Germany]]
|?population
|format=jqplotpie
}}
See the scenario link.
Chart formats
- Google pie format
- Google bar format
- Ploticus format
- Jqplotbar format
- Jqplotpie format
See also
|
|
This documentation page applies to all SMW versions from 1.7.0 to the most current version.
Other versions: 1.5.1 – 1.6.2 Other languages: zh-hans