DPL Example 102

From FollowTheScore
Revision as of 09:27, 13 March 2009 by Gero (talk | contribs)
Jump to: navigation, search

back to list of examples

Create a pie chart based on DPL query

We show the 7 most popular articles



The above script produces the following output:


{{#ploticus:

  1. proc getdata
 data:

"Test5554" %COUNT% "2008-02-16 best time ever" %COUNT% "Nowa kategoria" %COUNT% "Test 001" %COUNT% "Test 002" %COUNT% "Test 003" %COUNT% "Test 004" %COUNT%

// render pie graph

  1. proc pie

datafield: 2 labelfmtstring: @@1 (@@2) labelmode: line+label outlinedetails: color=blue center: 4 4 radius: 1.6 colors: dullyellow drabgreen pink powderblue lavender labelfarout: 1.8 }}