react-google-charts
Version:
react-google-charts React component
71 lines (51 loc) • 2.07 kB
Markdown
# React Google Charts
<img align="right" alt="Logo" src="website/static/img/logo.png">
A thin, typed, React wrapper for [Google Charts](https://developers.google.com/chart/interactive/docs/reference).
[](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="#quickstart">Quickstart</a>
<span> • </span>
<a href="#docs">Docs</a>
<span> • </span>
<a href="#contributing">Contributing</a>
<span> • </span>
<a href="https://stackoverflow.com/questions/tagged/react-google-charts">Stack Overflow</a>
<br />
<hr />
## Quickstart
Install this library with your favorite package manager:
```bash
yarn add react-google-charts
```
or
```bash
npm install --save 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
/>
```
## Docs
- [Quick Walkthrough](https://react-google-charts.com/docs/quick-walkthrough)
- [Components](https://react-google-charts.com/components)
- [Examples](https://react-google-charts.com/examples)
You can also check this [step-by-step tutorial](https://cube.dev/blog/react-google-charts-dashboard/?ref=eco-react-google-charts) that will walk you through the creation of a full-fledged dashboard with this library.
## 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
yarn
yarn start:storybook
```