9Skribilo User Manual — Pie Charts |
Skribilo contains a pie-chart formatting package, located in the (skribilo package pie) module. It allows users to produces represent numeric data as pie charts as in the following example:
|
A default implementation, which uses Ploticus as an external program, is available for all engines. There is also a specific implementation for the Lout engine which relies on Lout's own pie-chart package. In the latter case, you don't need to have Ploticus installed, but you need it in the former.
Currently it only supports slice-coloring, but support for textures (particularly useful for black & white printouts) could be added in the future.
Let us start with a simple example:
... produces:
|
This illustrates the three markups provided by the pie package, namely pie, slice, and sliceweight. This last markup returns the weight of the slice it is used in, be it as a percentage or an absolute value. Note that the :total option of pie can be used to create pie charts no entirely filled.
Various options allow the pie layout to be controlled:
|
... produces:
|