Difference between revisions of "Template:DPL Example 103 barchart"
From FollowTheScore
(New page: {{#ploticus: #proc getdata data: {{{data|}}} // render pie graph #proc bar datafield: 2 labelfmtstring: @@1 (@@2) labelmode: line+label outlinedetails: color=blue colors: dullyellow d...) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{{data|}}} | {{{data|}}} | ||
− | // | + | // set up plotting area using proc areadef |
− | #proc | + | #proc areadef |
− | + | rectangle: 1 1 5 10 | |
− | + | xrange: {{{xrange|0 100}}} | |
− | + | yrange: {{{yrange|0 100}}} | |
− | + | title: {{{title|}}} | |
− | + | frame: color=0.8 | |
− | + | ||
+ | // do x axis using proc xaxis | ||
+ | #proc xaxis | ||
+ | stubs inc {{{stubsX|10}}} | ||
+ | axisline: none | ||
+ | tics: none | ||
+ | label: {{{labelX|}}} | ||
+ | grid: color=rgb(.6,1,.6) | ||
+ | stubformat: %g% | ||
+ | |||
+ | // do bars using proc bars | ||
+ | #proc bars | ||
+ | axis: x | ||
+ | lenfield: 2 | ||
+ | color: pink | ||
+ | showvalues: yes | ||
+ | labelfield: 1 | ||
+ | longwayslabel: yes | ||
+ | labeldetails: size=8 | ||
+ | reverseorder: yes | ||
+ | outline: no | ||
+ | |||
}} | }} |
Latest revision as of 11:51, 13 March 2009
{{#ploticus:
- proc getdata
data:
// set up plotting area using proc areadef
- proc areadef
rectangle: 1 1 5 10 xrange: 0 100 yrange: 0 100 title: frame: color=0.8
// do x axis using proc xaxis
- proc xaxis
stubs inc 10 axisline: none tics: none label: grid: color=rgb(.6,1,.6) stubformat: %g%
// do bars using proc bars
- proc bars
axis: x lenfield: 2 color: pink showvalues: yes labelfield: 1 longwayslabel: yes labeldetails: size=8 reverseorder: yes outline: no
}}