Simple Pie and Bar chart creation

Features

The piebar program aims to simplify the creation of pie and bar charts from command line or shell scripts. You just give your series of data on standard input, and voilĂ  !

Manual

PDF manual page is available here.

Pie charts

File used in these examples: https://gitlab.com/pdagog/piebar/-/blob/main/sales1.dat

Sales by product

Sales by product
piebar -o gal-pie1.svg -t "Sales by product" pie -s -25 < sales1.dat

Sales by product with custom colors

Sales by product with custom colors
piebar -o gal-pie1custom.svg -t "Sales by product with custom colors" pie -s -25 "Product A|cadetblue" "Product B|khaki" "Product C|seagreen" "Product D|lightcoral" < sales1.dat

Bar charts with one key

File used in these examples: https://gitlab.com/pdagog/piebar/-/blob/main/sales1.dat

Sales by product

Sales by product
piebar -o gal-bar1.svg -t "Sales by product" bar < sales1.dat

Sales by product wih custom colors and a grid

Sales by product wih custom colors
piebar -o gal-bar1custom.svg -t "Sales by product with custom colors" bar -g "Product A|cadetblue" "Product B|khaki" "Product C|seagreen" "Product D|lightcoral" < sales1.dat

Sales by product wih stacked bars

Sales by product wih stacked bars
piebar -o gal-bar1stack.svg -t "Sales by product, stacked" bar -s < sales1.dat

Sales by product wih stacked bars, custom colors and a grid

Sales by product wih stacked bars and custom colors
piebar -o gal-bar1stackcustom.svg -t "Sales by product with custom colors" bar -s "Product A|cadetblue" "Product B|khaki" "Product C|seagreen" "Product D|lightcoral" < sales1.dat

Bar charts with two keys

File used in these examples: https://gitlab.com/pdagog/piebar/-/blob/main/sales2.dat

Sales by product and quarter

Sales by product and quarter
piebar -o gal-bar2.svg -t "Sales by product and quarter" bar < sales2.dat

Sales by product, stacked by quarter

Sales by product, stacked by quarter
piebar -o gal-bar2stack.svg -t "Sales by product, stacked by quarter (with custom colors)" bar -s "Q1|lightblue" "Q2|gold" < sales2.dat

Bar charts with three keys

File used in this example: https://gitlab.com/pdagog/piebar/-/blob/main/sales3.dat

Sales by product, quarter and region

Sales by product, quarter and region
piebar -o gal-bar3.svg -t "Sales by product, quarter (left: Q1, right: Q2) and region" bar < sales3.dat

Releases