Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tobiaslins/frappe-charts-react-example

Example how to use frappe-charts with react
https://github.com/tobiaslins/frappe-charts-react-example

Last synced: 17 days ago
JSON representation

Example how to use frappe-charts with react

Awesome Lists containing this project

README

        

# Frappe Charts with React

Copy the react component as in `chart.js`

And now include and use the created React component (dont forget to include the
css):

```jsx
import Chart from './chart'
import 'frappe-charts/dist/frappe-charts.min.css'

```

## Configuring

Every property of frappe-chart is set automatically if its set on the react
component Example:

```jsx
...

```

## Click handler

If you provide a property called `onSelect` you will receive events on click
(only barchart)