Thanks to visit codestin.com
Credit goes to lib.rs

#plot #histogram #bar-charts

eb_bars

Tiny plot library for creating barcharts and histograms

18 releases (6 breaking)

Uses new Rust 2024

0.7.3 Aug 19, 2025
0.7.2 Jun 20, 2025
0.6.0 Jun 2, 2025
0.5.2 Mar 31, 2025

#151 in Visualization

Codestin Search App Codestin Search App Codestin Search App

1,047 downloads per month

MIT/Apache

80KB
803 lines

EB Bars - It's a Super Simple Barchart Library 🦀

  • Simple and good looking barcharts for Rust

So Simple that

  • you can only create barcharts and or histograms.
  • there are no external dependencies.
  • the only supported output is svg.
  • all bars are drawn with the rect svg element instead of for example the path element.
  • even your mom can use the API.

But despite being simple you can customize your barchart by

  • adding text in any of the four sides if you want.
  • setting font size for text.
  • applying custom colors on bars, lines, ticks/markers and text.
  • showing or hiding grid lines (both horizontal and vertical).
  • having bars with negative values be drawn downwards.
  • setting a custom resolution.
  • resizing the chart and move it in all directions for best fit.

Showcase

Click the images below to have a look at the code behind each.

Documentation

Refer to crate docs for how to produce nice looking plots or simply take a look at all the tests.

No runtime deps