summary refs log tree commit diff
path: root/doc/user/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user/src')
-rw-r--r--doc/user/src/Makefile.am6
-rw-r--r--doc/user/src/pie1.skb13
-rw-r--r--doc/user/src/pie2.skb14
3 files changed, 30 insertions, 3 deletions
diff --git a/doc/user/src/Makefile.am b/doc/user/src/Makefile.am
index 6d7daf4..6c61a1f 100644
--- a/doc/user/src/Makefile.am
+++ b/doc/user/src/Makefile.am
@@ -4,8 +4,8 @@ EXTRA_DIST = api1.skb api10.skb api11.skb api12.skb api13.skb	\
   api4.skb api5.skb api6.skb api7.skb api8.skb			\
   api9.skb bib1.sbib bib2.skb bib3.skb bib4.skb			\
   bib5.skb bib6.skb eq1.skb eq2.skb index1.skb			\
-  index2.skb index3.skb links1.skb links2.skb prgm1.skb		\
-  prgm2.skb prgm3.skb slides.skb start1.skb start2.skb		\
-  start3.skb start4.skb start5.skb
+  index2.skb index3.skb links1.skb links2.skb pie1.skb pie2.skb	\
+  prgm1.skb prgm2.skb prgm3.skb slides.skb			\
+  start1.skb start2.skb start3.skb start4.skb start5.skb
 
 ## arch-tag: 9614a784-cac2-4399-bd61-18c9172f48a8
diff --git a/doc/user/src/pie1.skb b/doc/user/src/pie1.skb
new file mode 100644
index 0000000..0d0fd0b
--- /dev/null
+++ b/doc/user/src/pie1.skb
@@ -0,0 +1,13 @@
+;; A sad pie chart.
+;;
+
+(pie :title [Casualties in the Israel-Lebanon 2006 Conflict (source:
+English Wikipedia page, 2006-07-23)]
+     :total 450 ;; to show the uncertainty on figures
+     :ident "pie-lebanon-2006"
+     :labels 'outside :fingers? #t
+
+  (slice :weight   8 :color "black" [Hezbollah militants])
+  (slice :weight  42 :color "blue"  [soldiers])
+  (slice :weight 317 :color "red" :detach? #t
+	[civilians (,(sliceweight :percentage? #t)%)]))
diff --git a/doc/user/src/pie2.skb b/doc/user/src/pie2.skb
new file mode 100644
index 0000000..84b5394
--- /dev/null
+++ b/doc/user/src/pie2.skb
@@ -0,0 +1,14 @@
+;; Another sad pie chart.
+;;
+
+(pie :title [Casualties of the Conflict in Iraq since 2003 (source:
+English Wikipedia page, 2006-07-23)]
+     :ident "pie-iraq-2006"
+     :fingers? #f
+     :labels 'inside
+     :initial-angle 45
+     :radius 2
+
+  (slice :weight 100000 :color "red" :detach? #t
+	[civilians (,(sliceweight :percentage? #t)%)])
+  (slice :weight (+ 2555 229) :color #xeeeeee  [soldiers]))