Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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).