pie_chart

Crates.iopie_chart
lib.rspie_chart
version1.0.0
sourcesrc
created_at2024-05-26 00:28:49.405679
updated_at2024-05-28 02:08:01.502697
descriptionA pie chart generator
homepage
repositoryhttps://github.com/jlyonsmith/pie_chart
max_upload_size
id1252281
size47,137
John Lyon-Smith (jlyonsmith)

documentation

README

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
Commit count: 12

cargo fmt