react-google-charts
Version:
react-google-charts React component
70 lines (53 loc) • 2.24 kB
Markdown
# React Google Charts
<img align="right" alt="Logo" src="../../apps/docs/static/img/logo-v2.svg">
React Google Charts is a lightweight and fully typed React wrapper for [Google Charts](https://developers.google.com/chart/interactive/docs/reference).
It's easy to use, supports over 25 chart types, supports animations and is highly customizable when needed.
[](https://www.npmjs.com/package/react-google-charts)
[](https://www.npmjs.com/package/react-google-charts)
[](http://opensource.org/licenses/MIT)
[](https://bundlephobia.com/result?p=react-google-charts)

<br />
<a href="https://www.react-google-charts.com/">Docs</a>
<span> • </span>
<a href="https://www.react-google-charts.com/docs/quick-walkthrough">Quickstart</a>
<span> • </span>
<a href="https://www.react-google-charts.com/examples">Examples</a>
<span> • </span>
<a href="#contributing">Contributing</a>
<span> • </span>
<a href="https://stackoverflow.com/questions/tagged/react-google-charts">Stack Overflow</a>
<span> • </span>
<a href="https://discord.gg/nNa2EEgUkS">Discord</a>
<br />
<hr />
[](https://react-google-charts.com)
## Quickstart
Install this library with your favorite package manager:
```bash
npm i react-google-charts
```
Then, import and use it:
```jsx
import { Chart } from "react-google-charts";
<Chart
chartType="ScatterChart"
data={[
["Age", "Weight"],
[4, 5.5],
[8, 12],
]}
width="100%"
height="400px"
legendToggle
/>;
```
## Contributing
Contributions are very welcome. Check out [CONTRIBUTING.md](CONTRIBUTING.md)
## Run the Storybook
```bash
git clone https://www.github.com/rakannimer/react-google-charts
cd react-google-charts
npm i
npm run start:storybook
```