# 1bit-chart-bars

> Simple module for generating 1bit bar charts

Latest version **0.0.2** (published 2014-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install 1bit-chart-bars
pnpm add 1bit-chart-bars
yarn add 1bit-chart-bars
bun add 1bit-chart-bars
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2014-05-31 |
| First published | 2014-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Espen Hovlandsdal |
| Maintainers | rexxars |
| Keywords | chart, plot, graph, 1bit, bars |

## Links

- npm: https://www.npmjs.com/package/1bit-chart-bars
- Repository: https://github.com/dogestats/1bit-chart-bars
- Issues: https://github.com/dogestats/1bit-chart-bars/issues
- npm.io page: https://npm.io/package/1bit-chart-bars

## Dependencies (1)

- [ndarray-bit](https://npm.io/package/ndarray-bit.md) 0.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2014-05-31

## README

1bit-chart-bars
===============

Simple module for generating 1bit bar charts. Outputs an [nd-array](https://github.com/mikolalysenko/ndarray) of bits.

[![Build Status](https://travis-ci.org/dogestats/1bit-chart-bars.svg?branch=master)](https://travis-ci.org/dogestats/1bit-chart-bars)

[![Browser Test Status](https://saucelabs.com/browser-matrix/1bit-chart-bars.svg)](https://saucelabs.com/u/1bit-chart-bars)

# example

``` js
var chart = require('1bit-chart-bars');
var input = [1, 2, 3, 4, 5];
chart(input, {
    height: 7,
    width: 5,
    padding: 0,
    min: 0,
    max: 7
});

/*
[
    [false, false, false, false, false],
    [false, false, false, false, false],
    [false, false, false, false,  true],
    [false, false, false,  true,  true],
    [false, false,  true,  true,  true],
    [false,  true,  true,  true,  true],
    [ true,  true,  true,  true,  true]
]
*/
```

```
░░░░░░░░░▄░░░░░░░░░░░░░░▄ 
░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌ 
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐     such chart
░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ 
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐ 
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌     amaze
░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌ 
░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐ 
░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌ 
░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌ 
▌▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒▐     many bar
▐▒▒▐▀▐▀▒░▄▄▒▄▒▒▒▒▒▒░▒░▒░▒▒▒▒▌ 
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒▒▒░▒░▒░▒▒▐ 
░▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒░▒░▒░▒░▒▒▒▌ 
░▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▄▒▒▐  wow
░░▀▄▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▄▒▒▒▒▌ 
░░░░▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀ 
░░░░░░▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀ 
░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▀▀
```

---
_Source: https://npm.io/package/1bit-chart-bars · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
