stacked_bar_chart

Crates.iostacked_bar_chart
lib.rsstacked_bar_chart
version1.0.1
sourcesrc
created_at2024-05-28 02:11:39.68936
updated_at2024-05-28 02:11:39.68936
descriptionGenerate a stacked bar chart
homepage
repositoryhttps://github.com/jlyonsmith/stacked_bar_chart
max_upload_size
id1253903
size52,122
John Lyon-Smith (jlyonsmith)

documentation

README

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

cargo fmt