# nano-charts

> A zero-dependency goodness for visualizing your data. Currently only implements the Line Chart.

Latest version **1.2.1** (published 2019-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install nano-charts
pnpm add nano-charts
yarn add nano-charts
bun add nano-charts
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2019-01-20 |
| First published | 2018-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Unpacked size | 187.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Nikita Luchko |
| Maintainers | luchkonikita |
| Keywords | chart |

## Links

- npm: https://www.npmjs.com/package/nano-charts
- Repository: https://github.com/luchkonikita/nano-charts
- Homepage: https://github.com/luchkonikita/nano-charts#readme
- Issues: https://github.com/luchkonikita/nano-charts/issues
- npm.io page: https://npm.io/package/nano-charts

## 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

- 1.2.1 (latest) — 2019-01-20
- 1.2.0 — 2019-01-01
- 1.1.0 — 2019-01-01
- 1.0.2 — 2018-12-24
- 1.0.1 — 2018-12-24
- 1.0.0 — 2018-12-24
- 0.0.0 — 2018-12-21

## README

# Nano charts 📊

[![npm version](https://badge.fury.io/js/nano-charts.svg)](https://badge.fury.io/js/nano-charts)
![](https://travis-ci.org/luchkonikita/nano-charts.svg?branch=master)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

A zero-dependency goodness for visualizing your data.
Currently only implements the [Line Chart](https://en.wikipedia.org/wiki/Line_chart).

![](https://cdn-std.dprcdn.net/files/acc_99774/0MOtQ4)

## Why another charts library? 🤔

- No external dependencies.
- No complicated features with complicated APIs.
- Focus on usage simplicity and small bundle size.

## Example 💡

The next will provide you with a working chart:

```javascript
import Chart from 'nano-charts'

new Chart(document.getElementById('chart'), {
  labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
  samples: {
    Apples: [10, 50, 80, 40, 20, 0, 50, 60, 50, 20, 30, 10],
    Oranges: [0, 70, 85, 30, 20, 30, 70, 30, 30, 25, 25, 30]
  },
  options: {
    Apples: {
      color: '#f44336'
    },
    Oranges: {
      color: '#673ab7'
    }
  }
})
```

## TODO

- (Feature) Generate colors automatically. Think if this is needed, though.
- (Chore) Write missing tests.
- (Refactoring) See how this can be minimized more.
- (Chore) Write a proper README.md. Provide some measurements.
- (Feature) Render the legend.
- (Feature) Animations.

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