4 releases (1 stable)

1.0.0 May 28, 2024
0.1.2 May 28, 2024
0.1.1 May 26, 2024
0.1.0 May 26, 2024

#179 in Visualization

Download history 10/week @ 2024-09-22

98 downloads per month

Unlicense

18KB
439 lines

Pie Chart

coverage Crates.io Docs.rs

This is a simple pie chart generator. You provide a JSON5 file with data it generates an SVG file. You can convert the SVG to PNG or other bitmap formats with the resvg tool.

Here is an example of the output:

Example Pie Chart

Install with cargo install pie_chart. Run with pie-chart.

Features of the tool include:

  • Automatic generation of the pie chart legend
  • Automatic color selection to maximize contrast between wedges
  • Uses SVG styles to allow for the image to be easily modified

Dependencies

~4.5MB
~88K SLoC