Difference between revisions of "Template:DPL Example 103 barchart"

From FollowTheScore
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
// set up plotting area using proc areadef
 
// set up plotting area using proc areadef
 
#proc areadef
 
#proc areadef
   rectangle: 1 1 3.5 2
+
   rectangle: 1 1 5 10
//  xrange: 0 125
+
  xrange: {{{xrange|0 100}}}
//  yrange: 0 5
+
  yrange: {{{yrange|0 100}}}
 
   title: {{{title|}}}
 
   title: {{{title|}}}
 
   frame: color=0.8
 
   frame: color=0.8
Line 15: Line 15:
 
// do x axis using proc xaxis
 
// do x axis using proc xaxis
 
#proc xaxis
 
#proc xaxis
   stubs inc 25
+
   stubs inc {{{stubsX|10}}}
 
   axisline: none
 
   axisline: none
 
   tics: none  
 
   tics: none  
 
   label: {{{labelX|}}}
 
   label: {{{labelX|}}}
 
   grid: color=rgb(.6,1,.6)
 
   grid: color=rgb(.6,1,.6)
   stubformat: %g%%
+
   stubformat: %g%
  
 
// do bars using proc bars
 
// do bars using proc bars
Line 30: Line 30:
 
   labelfield: 1
 
   labelfield: 1
 
   longwayslabel: yes
 
   longwayslabel: yes
   labeldetails: size=6
+
   labeldetails: size=8
 
   reverseorder: yes
 
   reverseorder: yes
 
   outline: no
 
   outline: no
  
 
}}
 
}}

Latest revision as of 12:51, 13 March 2009

{{#ploticus:

  1. proc getdata
 data:


// set up plotting area using proc areadef

  1. proc areadef
 rectangle: 1 1 5 10
 xrange: 0 100
 yrange: 0 100
 title: 
 frame: color=0.8

// do x axis using proc xaxis

  1. proc xaxis
 stubs inc 10
 axisline: none
 tics: none 
 label: 
 grid: color=rgb(.6,1,.6)
 stubformat: %g%

// do bars using proc bars

  1. proc bars
 axis: x
 lenfield: 2
 color: pink
 showvalues: yes
 labelfield: 1
 longwayslabel: yes
 labeldetails: size=8 
 reverseorder: yes
 outline: no

}}