Skip to content
B

babar

CLI bar charts

by stephan83Free

#263in UI Libraries
0In stores

Description

Babar is a small Node.js library that draws bar charts in your console. You pass it an array of [x, y] points, and it returns a string you c…

Highlights

  • Draws bar charts in the console from [x, y] points
  • Colour output and ASCII output
  • Automatic bucketing of values
  • Options for caption, colours, width, height and axis range
  • Small library under 100 lines, MIT license

Ratings & Reviews

No ratings yet

Be the first to rate babar.

People also visit

A

Asciichart

Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS

Utilities
Launch
C

chartkick

Create beautiful charts with one line of JavaScript

UI Libraries
Launch
C

chartist

Simple, responsive charts

UI Libraries
Launch
F

frappe-charts

https://frappe.github.io/charts

UI Libraries
Launch
R

react-charty

Data Visualization Component

UI Libraries
Launch
U

Unicode_plot.rb

Plot your data by Unicode characters

Utilities
Launch

babar FAQ

What is Babar?

Babar is a Node.js library that draws bar charts in the console. It is meant for quick, rough views of data rather than advanced charting.

What data does it take?

An array of points, where each point is an array of two values [x, y]. It returns a string that you output to the console.

Can I customise the chart?

Yes. Options include a caption, the bar colour (cyan by default), the grid colour, a width and height to fit the output, the number of fractions for the x and y labels, and the minimum and maximum values for each axis.

What are its limits?

It has limited options and draws only bar charts, with one data set per graph. It supports only numerical labels and linear axes, and negative y values are not supported yet.

What license is it under?

It is released under the MIT license.

What are the best babar alternatives?

Popular alternatives to babar include chartkick, chartist and frappe-charts. See all babar alternatives

Developer Stuff

Badges