Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into onLoad-prop
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/ReactGoogleCharts.tsx
#	src/components/GoogleChartLoader.tsx
  • Loading branch information
newsiberian committed Nov 25, 2021
2 parents ba96bf5 + 3f9c784 commit 0fb05e6
Show file tree
Hide file tree
Showing 175 changed files with 10,231 additions and 7,297 deletions.
3 changes: 3 additions & 0 deletions .clean-publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"packageManager": "yarn"
}
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
19 changes: 19 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Checks
on:
pull_request:
branches:
- master
jobs:
size:
runs-on: ubuntu-latest
name: Checking size
if: "!contains(github.event.head_commit.message, '[ci skip]')"
env:
CI_JOB_NUMBER: 1
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Check size
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 24 additions & 0 deletions .size-limit
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"path": "dist/index.cjs",
"limit": "5.9 KB",
"webpack": false,
"running": false
},
{
"path": "dist/index.cjs",
"limit": "4.7 KB",
"import": "{ Chart }"
},
{
"path": "dist/index.mjs",
"limit": "5.7 KB",
"webpack": false,
"running": false
},
{
"path": "dist/index.mjs",
"limit": "4.5 KB",
"import": "{ Chart }"
}
]
14 changes: 14 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const path = require('path');

module.exports = {
stories: ['../stories/*.tsx'],
addons: [
'@storybook/addon-docs',
'@storybook/addon-controls',
'@storybook/addon-actions',
],
webpackFinal(config) {
config.resolve.alias['react-google-charts'] = path.resolve(__dirname, '../src');
return config;
},
};
8 changes: 8 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { addons } from '@storybook/addons';

import { theme } from './theme';

addons.setConfig({
theme,
panelPosition: 'right',
});
5 changes: 5 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { configureActions } from '@storybook/addon-actions';

configureActions({
depth: 5,
});
7 changes: 7 additions & 0 deletions .storybook/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { create } from '@storybook/theming';

export const theme = create({
base: 'light',
brandTitle: 'react-google-charts',
brandUrl: 'https://github.com/rakannimer/react-google-charts',
});
118 changes: 59 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,163 +238,163 @@ export default ExampleChart;
#### Area Chart

- [Demo](https://react-google-charts.com/area-chart)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/area-chart)
- [Raw Code](./sandboxes/area-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/area-chart?file=/App.tsx)
- [Raw Code](./sandboxes/area-chart/App.tsx)

#### Bar Chart

- [Demo](https://react-google-charts.com/bar-chart)
- [Code](./sandboxes/bar-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bar-chart)
- [Code](./sandboxes/bar-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bar-chart?file=/App.tsx)

#### Bubble Chart

- [Demo](https://react-google-charts.com/bubble-chart)
- [Code](./sandboxes/bubble-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bubble-chart)
- [Code](./sandboxes/bubble-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bubble-chart?file=/App.tsx)

#### Calendar Chart

- [Demo](https://react-google-charts.com/calendar-chart)
- [Code](./sandboxes/calendar/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/calendar)
- [Code](./sandboxes/calendar/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/calendar?file=/App.tsx)

#### Candlestick Chart

- [Demo](https://react-google-charts.com/candleStick-chart)
- [Code](./sandboxes/candlestick/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/candlestick)
- [Code](./sandboxes/candlestick-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/candlestick-chart?file=/App.tsx)

#### Column Chart

- [Code](./sandboxes/column-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/column-chart)
- [Code](./sandboxes/column-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/column-chart?file=/App.tsx)

#### Diff Scatter Chart

- [Demo](https://react-google-charts.com/diff-chart)
- [Code](./sandboxes/diff-scatter-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/diff-scatter-chart)
- [Code](./sandboxes/scatter-chart-diff/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/scatter-chart-diff?file=/App.tsx)

#### Diff Column Chart

- [Demo](https://react-google-charts.com/diff-chart#diff-column-charts)
- [Code](./sandboxes/diff-column-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/diff-column-chart)
- [Code](./sandboxes/column-chart-diff/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/column-chart-diff?file=/App.tsx)

#### Donut Chart

- [Code](./sandboxes/donut-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/donut-chart)
- [Code](./sandboxes/pie-chart-donut/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/pie-chart-donut?file=/App.tsx)

#### Gantt Chart

- [Demo](https://react-google-charts.com/gantt-chart)
- [Code](./sandboxes/gantt-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/gantt-chart)
- [Code](./sandboxes/gantt/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/gantt?file=/App.tsx)

#### Gauge Chart

- [Demo](https://react-google-charts.com/gauge-chart)
- [Code](./sandboxes/gauge/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/gauge)
- [Code](./sandboxes/gauge/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/gauge?file=/App.tsx)

#### Geo Chart

- [Demo](https://react-google-charts.com/geo-chart)
- [Code](./sandboxes/geo-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/geo-chart)
- [Code](./sandboxes/geo-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/geo-chart?file=/App.tsx)

#### Histogram Chart

- [Demo](https://react-google-charts.com/histogram-chart)
- [Code](./sandboxes/histogram/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/histogram)
- [Code](./sandboxes/histogram/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/histogram?file=/App.tsx)

#### Line Chart

- [Demo](https://react-google-charts.com/line-chart)
- [Code](./sandboxes/linechart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/linechart)
- [Code](./sandboxes/line-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/line-chart?file=/App.tsx)

#### Material Bar Chart

- [Demo](https://react-google-charts.com/bar-chart#material-design)
- [Code](./sandboxes/material-bar-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/material-bar-chart)
- [Code](./sandboxes/bar/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bar?file=/App.tsx)

#### Material Line Chart

- [Demo](https://react-google-charts.com/line-chart#material-design-linechart)
- [Code](./sandboxes/material-line-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/material-line-chart)
- [Code](./sandboxes/line/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/line?file=/App.tsx)

#### Org Chart

- [Demo](https://react-google-charts.com/org-chart)
- [Code](./sandboxes/org-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/org-chart)
- [Code](./sandboxes/org-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/org-chart?file=/App.tsx)

#### Pie Chart

- [Demo](https://react-google-charts.com/pie-chart)
- [Code](./sandboxes/pie-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/pie-chart)
- [Code](./sandboxes/pie-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/pie-chart?file=/App.tsx)

#### Sankey Chart

- [Demo](https://react-google-charts.com/sankey-diagram)
- [Code](./sandboxes/sankey/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/sankey)
- [Code](./sandboxes/sankey/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/sankey?file=/App.tsx)

#### Scatter Chart

- [Demo](https://react-google-charts.com/scatter-chart)
- [Code](./sandboxes/scatter-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/scatter-chart)
- [Code](./sandboxes/scatter-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/scatter-chart?file=/App.tsx)

#### Stepped Area Chart

- [Demo](https://react-google-charts.com/stepped-area-chart)
- [Code](./sandboxes/stepped-area-chart/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/stepped-area-chart)
- [Code](./sandboxes/stepped-area-chart/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/stepped-area-chart?file=/App.tsx)

#### Table Chart

- [Demo](https://react-google-charts.com/table-chart)
- [Code](./sandboxes/table/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/table)
- [Code](./sandboxes/table/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/table?file=/App.tsx)

#### Timeline Chart

- [Demo](https://react-google-charts.com/timeline-chart)
- [Code](./sandboxes/timeline/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/timeline)
- [Code](./sandboxes/timeline/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/timeline?file=/App.tsx)

#### Treemap Chart

- [Demo](https://react-google-charts.com/treemap-chart)
- [Code](./sandboxes/treemap/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/treemap)
- [Code](./sandboxes/tree-map/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/tree-map?file=/App.tsx)

#### Waterfall Chart

- [Code](./sandboxes/waterfall/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/waterfall)
- [Code](./sandboxes/candlestick-chart-waterfall/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/candlestick-chart-waterfall?file=/App.tsx)

#### Wordtree Chart

- [Demo](https://react-google-charts.com/wordtree-chart)
- [Code](./sandboxes/wordtree/index.js)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/wordtree)
- [Code](./sandboxes/word-tree/App.tsx)
- [Sandbox](https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/word-tree?file=/App.tsx)

### Run the example app
### Run the Storybook

```bash
git clone https://www.github.com/rakannimer/react-google-charts
cd react-google-charts
npm i
npm start
yarn
yarn start:storybook
```

## Contributing
Expand All @@ -413,8 +413,8 @@ Contributions are very welcome. Check out [CONTRIBUTING.md](CONTRIBUTING.md)
- [Demo](https://rakannimer.github.io/react-google-charts/#/react-google-charts/bar-chart)

[barchart-demo]: https://react-google-charts.com/bar-chart
[barchart-example-code]: ./sandboxes/bar-chart/index.js
[barchart-example-sandbox]: https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bar-chart
[barchart-example-code]: ./sandboxes/bar-chart/App.tsx
[barchart-example-sandbox]: https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bar-chart?file=/App.tsx
[bubblechart-demo]: https://react-google-charts.com/bubble-chart
[bubblechart-example-code]: ./sandboxes/bubble-chart/index.js
[bubblechart-example-sandbox]: https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bubble-chart
[bubblechart-example-code]: ./sandboxes/bubble-chart/App.tsx
[bubblechart-example-sandbox]: https://codesandbox.io/s/github/rakannimer/react-google-charts/tree/master/sandboxes/bubble-chart?file=/App.tsx
22 changes: 0 additions & 22 deletions demo/index-interactive.html

This file was deleted.

Loading

0 comments on commit 0fb05e6

Please sign in to comment.