https://github.com/sebinsua/component-horizontal-stacked-bar
A horizontal stacked bar component created with React and d3
https://github.com/sebinsua/component-horizontal-stacked-bar
component d3 horizontal react stacked-bar
Last synced: 3 months ago
JSON representation
A horizontal stacked bar component created with React and d3
- Host: GitHub
- URL: https://github.com/sebinsua/component-horizontal-stacked-bar
- Owner: sebinsua
- License: unlicense
- Created: 2016-07-13T13:57:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-15T15:55:57.000Z (almost 10 years ago)
- Last Synced: 2025-10-29T21:33:56.983Z (8 months ago)
- Topics: component, d3, horizontal, react, stacked-bar
- Language: JavaScript
- Size: 22.5 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# component-horizontal-stacked-bar
> A horizontal stacked bar component created with `React` and `d3`
## Install
```sh
npm install --save component-horizontal-stacked-bar
```
## Example
```js
import React from 'react'
import HorizontalStackedBar from 'component-horizontal-stacked-bar'
export default function EconomicDomainAggregatesBar ({
className,
data
}) {
const generateLabel = (d, i) => { /* ... */ }
const generateColor = (d, i) => { /* ... */ }
return (
)
}
```