File: clickmap_pie.htm

package info (click to toggle)
ploticus-doc 2.0.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,284 kB
  • ctags: 83
  • sloc: pascal: 149; makefile: 61; sh: 30
file content (39 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html><h1>clickmap_pie</h1><img src="clickmap_pie.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>

<pre><b>Usage: ploticus -png -map clickmap_pie.htm
Demonstrate clickmap for pie graph..
<hr></b>

#setifnotgiven CGI = "http://ploticus.sourceforge.net/cgi-bin/showcgiargs"

#proc page
#if @DEVICE in gif,png
  scale: 0.7
#endif

// <b> specify data using <a href="../doc/getdata.html">proc getdata</a></b>
#proc getdata
data:	Brazil 22
	Columbia 17
	"Costa Rica" 22
	Guatemala 3
	Honduras 12
	Mexico 14
	Nicaragua 28
	Belize 9
 	United\nStates 21
	Canada 8

// <b> render the pie graph using <a href="../doc/pie.html">proc pie</a></b>
#proc pie
clickmapurl: @CGI?country=@@1&n=@@2
firstslice: 90
explode: .2 0 0 0 0  .2 0
datafield: 2
labelfield: 1
labelmode: line+label
center: 4 4
radius: 2
colors: yellow pink pink pink pink yellow pink
labelfarout: 1.05