## Examples using the pie prefab

Version 2.32
Prefabs

Manual page for Examples_using_the_pie_prefab(PL)

These examples use the pie prefab.`` They are included in the distribution (`./pltestsuite/testpf_pie`).`` Gallery of ALL prefab examples

## pie example 1

        pl  -prefab pie  values=3  labels=1  data=data9  \
          delim=tab  title="Student enrollment"

        data9 file:
    	Business Admin	1.39	331
    	English 	1.67	182
    	Chemistry	2.07	301
    	..etc.

## pie example 2

        pl  -prefab pie  data=data23  delim=tab  values=2  labels=1  colorfld=3  \
          title="Colors from data field"  legend=yes

        the data23 file:
    	Employment		8	red
    	In transit		2	orange
    	Meals			1	green
    	Errands			1	purple
    	Household chores	2	yellow
    	Recreation & relaxation	2	blue
    	Sleep			8	gray(0.8)

Colors driven by data, and a legend for explanation.``

## pie example 3

      pl  -prefab pie  data=data23  delim=tab  values=2  "labelfmtstring= @1\n (@PCT%)"
    	colorfld=3  labelback=dullyellow  firstslice=90 center="4 3" radius=1.5

Labels with backing boxes, and an explicitly defined center and radius.``
data display engine
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` August 23, 2005.