Difference between revisions of "DPL Example 102"

From FollowTheScore
Jump to: navigation, search
(New page: {{Example|Create a pie chart based on DPL query}} We show the 10 most popular articles <pre><nowiki> {{#ploticus: #proc getdata data: "Alpha" 100 "Beta" 200 "Gamma" 300 // render p...)
(No difference)

Revision as of 09:11, 13 March 2009

back to list of examples

Create a pie chart based on DPL query

We show the 10 most popular articles

{{#ploticus:

#proc getdata
  data:
"Alpha" 100
"Beta"  200
"Gamma" 300

//  render pie graph
#proc pie
datafield: 2
labelfmtstring: @@1\n@@2\n@@PCT%
labelmode: line+label
outlinedetails: color=blue
center: 3 3
radius: 1.1
colors: dullyellow drabgreen pink powderblue lavender
labelfarout: 1.2
explode: 0 0.2 0 0
}}

The above script produces the following output:


{{#DPL Example 102 piechart:data=

 "A1" 100

"Abc/def" 100 "A ECP-00055 test page" 100 "Article with underscore" 100 "Activity Page 1" 100 "Activity Page 2" 100 "A2" 100 "Aa" 100 "Annotation URI" 100 "An article which is only referenced by a DPL query" 100 "AbC" 100 "Article connected by DPL category keyword" 100 "Abc" 100 "Activity 1" 100 "Activity 2" 100 "Activity 3" 100 "A" 100 "Apache服务器架设的简单,由小P发布" 100 "Application DPL-tracker" 100 "Applying a template to all pages of a given category" 100 "Allowing true caching by DPL dev page" 100 "Amethyst" 100 "Allowing true caching by DPL dev page" 100 "AssaCom" 100 "Alf63/C1" 100 "Alf63/C2" 100 "Alf63/RP.dpl.default" 100 "Alf63/SeqSize" 100 "Alf63/RP" 100 "Alf63/SeqGet" 100 "Alf63/RP of" 100 "Adomjan" 100 "Arcandio" 100 "Armin.Egner" 100 "Alf63/Seq test1" 100 "Aaron Overton" 100 "Awodejko" 100 "Alf63" 100 "AJim" 100 "Alf63/P1" 100 "Anonguy9" 100 "Arturro" 100 "Anonguy9" 100 "Alf63/P1" 100 "Arrow-closed.png" 100 "Arrow-open.png" 100 "Asking a calendar kit 2.png" 100 "Asking a calendar kit 1.png" 100 "Amp" 100 "Ask is a" 100 "Abc/x123" 100 "Articles" 100 "Alias Wgraph" 100 "African Country" 100 "Audio" 100 "ActivitySummary" 100 "Activity Description" 100 "About" 100 "AT&" 100 "Apachetest" 100 "AT&T" 100 "African Union member states" 100 "Antwerpen" 100 "Another Topic" 100 "Allows value" 100 "Age" 100 "Annotation URI" 100 "Architecture" 100 "Ahnen" 100 "Add new option to exclude page sections" 100 "Allow vertical alignment of node labels" 100 "Assigning absolute position of 0-0" 100 "Ampersand fails in category names" 100 "Allow includereplace or ability to ignore included section headers" 100 "Addlasteditor crashes new article" 100 "AddContribution missing prefix" 100 "AddContribution missing prefix regression" 100 "An Error of conbime using of StringFunctions extension and Simple Form" 100 "Adduser" 100 "Add "minimum-number-of-revisions" like Criteria for page selection" 100 "Article Titles/content added as sub bullets" 100 "Asking a parser "replace " demo" 100 "Article count is wrong" 100 "Add a template in the pages automatically by DPL" 100 "AiSee crash due to several near edges" 100 "Allow multiple surrogate templates, add/change syntax" 100 "Articlecategory doesn't work in 1.6.8" 100 "A problem in the conbination DPL 1.7.4 and MW1.3 using Chinense interface" 100 "Arbitrary adding of empty paragraph" 100 "Asking a calendar kit" 100

}}