diff options
author | Ludovic Courtes | 2006-07-23 20:50:31 +0000 |
---|---|---|
committer | Ludovic Courtes | 2006-07-23 20:50:31 +0000 |
commit | 4758a8261ef5e4a55372a686ae8a50f104292b12 (patch) | |
tree | c8a698ae0b194c1e0495c3816c7ba5f8b8ba96a8 /doc/user/src | |
parent | 6d7a8dbae57f06b883bab6e57728d07a9d072c22 (diff) | |
download | skribilo-4758a8261ef5e4a55372a686ae8a50f104292b12.tar.gz skribilo-4758a8261ef5e4a55372a686ae8a50f104292b12.tar.lz skribilo-4758a8261ef5e4a55372a686ae8a50f104292b12.zip |
Added a pie-chart package that can use either Ploticus or Lout.
* doc/user/user.skb: Use the `pie' package and include `pie.skb'.
git-archimport-id: lcourtes@laas.fr--2005-libre/skribilo--devo--1.2--patch-24
Diffstat (limited to 'doc/user/src')
-rw-r--r-- | doc/user/src/pie1.skb | 13 | ||||
-rw-r--r-- | doc/user/src/pie2.skb | 14 |
2 files changed, 27 insertions, 0 deletions
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])) |