1 stable release

1.0.1 May 28, 2024

#389 in Visualization

Unlicense

19KB
441 lines

Stacked Bar Chart

coverage Crates.io Docs.rs

This is a stacked bar chart generator. You provide a JSON5 file with data and 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 Stacked Bar Chart

Install with cargo install stacked_bar_chart. Run with stacked-bar-chart.

Features of the tool include:

  • Automatic scaling of the Y axis labels
  • Automatic generation of the legend
  • Automatic selection of bar colors to maximize contrast
  • Uses SVG classes to enable easy changes to the generate graphs

Dependencies

~4.5MB
~87K SLoC