react-micro-bar-chart

React component for micro bar-charts rendered with D3

Usage no npm install needed!

<script type="module">
  import reactMicroBarChart from 'https://cdn.skypack.dev/react-micro-bar-chart';
</script>

README

react-micro-bar-chart

React component for micro bar-charts rendered with D3. Companion to react-sparkline.

Install

npm install react-micro-bar-chart

Usage

Intended for simple micro-charts.

var MicroBarChart = require('react-micro-bar-chart');

<MicroBarChart data={anArrayOfNumbers} />

See the demo for more examples.

Demo

http://kyleamathews.github.io/react-micro-bar-chart/