Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beizhedenglong/rough-charts
๐ A responsive, composable react charting library with a hand-drawn style.
https://github.com/beizhedenglong/rough-charts
data-visualization drawing hand-drawn react-components rough-charts
Last synced: 7 days ago
JSON representation
๐ A responsive, composable react charting library with a hand-drawn style.
- Host: GitHub
- URL: https://github.com/beizhedenglong/rough-charts
- Owner: beizhedenglong
- License: mit
- Created: 2019-10-04T05:19:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T17:52:46.000Z (about 4 years ago)
- Last Synced: 2024-12-28T10:18:53.605Z (14 days ago)
- Topics: data-visualization, drawing, hand-drawn, react-components, rough-charts
- Language: TypeScript
- Homepage: https://beizhedenglong.github.io/rough-charts/?path=/docs/roughcharts--page
- Size: 5.65 MB
- Stars: 1,542
- Watchers: 18
- Forks: 56
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- my-awesome-list - rough-charts - drawn style. | beizhedenglong | 1542 | (TypeScript)
- awesome-github-star - rough-charts - drawn style. | beizhedenglong | 1516 | (TypeScript)
- awesome-list - rough-charts - drawn style. | beizhedenglong | 1472 | (TypeScript)
README
# Rough Charts ยท [![license](https://img.shields.io/github/license/beizhedenglong/rough-charts)](https://github.com/beizhedenglong/rough-charts/blob/master/LICENSE) ![build status](https://github.com/beizhedenglong/rough-charts/workflows/Node%20CI/badge.svg)
**A responsive, composable react charting library with a hand-drawn style.**
[**`See Examples From StoryBooks.`**](https://beizhedenglong.github.io/rough-charts/?path=/docs/roughcharts--page)## Overview
## Features
- **It's responsive.**
- **It's flexible and easy to compose.** You can compose all available ChartSeries Components and render any shapes you like.
- **It's lovely.**
- **It's written in TypeScript.**## Installation
```
# NPM
npm install rough-charts# Yarn
yarn add rough-charts
```
> **This project contains a package called [`react-roughjs`](https://github.com/beizhedenglong/rough-charts/tree/master/packages/react-roughjs). It has a lot of basic rough shapes, you may need it.**## Usage
```js
import * as React from 'react'
import {
LineSeries, Tooltip,
ChartProvider, XAxis, YAxis,
} from 'rough-charts'
import { colors } from './colors'const data = [
{ name: 'A', value1: 30, value2: 35 },
{ name: 'B', value1: 90, value2: 17 },
{ name: 'C', value1: 50, value2: 23 },
{ name: 'D', value1: 40, value2: 15 },
{ name: 'E', value1: 70, value2: 39 },
{ name: 'G', value1: 30, value2: 25 },
{ name: 'H', value1: 100, value2: 31 },
{ name: 'I', value1: 110, value2: 32 },
]const App = props => (
)```
## Fonts
Add your favorite hand-drawn style fonts:```html
* {
font-family: 'Patrick Hand', cursive;
font-size: 16px;
}```
## Credits
This project was built on top of [`d3`](https://github.com/d3) and [`roughjs`](https://github.com/pshihn/rough).