diff options
| author | David Wührer <def@gmx.at> | 2026-04-12 16:51:43 +0200 |
|---|---|---|
| committer | David Wührer <def@gmx.at> | 2026-04-12 16:51:43 +0200 |
| commit | 912b6505f1335a1f9eabf55045b67e38738bdaf3 (patch) | |
| tree | 519307c46f07dd691f643d2fef6bdf07462414e4 /man/man1/piechart.1 | |
| parent | 6702a32d9fdc0571570c28e9ba381c618d5a622c (diff) | |
Diffstat (limited to 'man/man1/piechart.1')
| -rw-r--r-- | man/man1/piechart.1 | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/man/man1/piechart.1 b/man/man1/piechart.1 new file mode 100644 index 0000000..dd80c65 --- /dev/null +++ b/man/man1/piechart.1 @@ -0,0 +1,66 @@ +.TH piechart 1 2026-04-12 utils + +.SH NAME +piechart \- turn a list into a piechart + +.SH SYNOPSIS +.SY piechart +.RI [ file ] +.YS + +.SH DESCRIPTION +.B piechart +is an +.BR awk (1) +script that reads a list, +either from +.BR stdin (3) +or from a specified file, +and prints out a piechart in +SVG format. +.P +The input format is simply a list, one entry per line, +starting with a number, followed by a label. +If the number is negative, it is understood to be a subset of the previous non-negative number. +Consecutive negative numbers accumulate. +.P +Lines not starting with a number are ignored. +(Actually they are preserved as comments, but they are not visible in the graphic.) + +.SH OPTIONS +.B piechart +has no options. +This may change in the future. + +.SH EXIT STATUS +No exit status is explicitly defined. + +.SH NOTES +.B piechart +is an +.BR awk (1) +script. +There is also a slightly more elegant +(and more correct) +but regrettably less readable implementation in C. +.P +Currently, +.B piechart +only renders a circular piechart. +Pseudo-3D and shadows are not implemented. + +.SH BUGS +Comment entries are preserved out of order. + +.SH EXAMPLES +.TP +.BI piechart\ data\ |\ display +Render the data in a +.BR display (1) +window. +.TP +.BI piechart\ <\ data\ >\ data.svg +Filter data into a graphics file. + +.SH SEE ALSO +.BR awk (1) |
