Skip to content

Commit

Permalink
Remove charteditor from default chartPackages and update docs accordi…
Browse files Browse the repository at this point in the history
…ngly. #234
  • Loading branch information
rakannimer committed Aug 16, 2018
1 parent 2a2cbae commit 19b294d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-google-charts",
"version": "3.0.4",
"version": "3.0.5",
"type": "react-component",
"description": "react-google-charts React component",
"main": "dist/index.cjs.js",
Expand Down
6 changes: 3 additions & 3 deletions src/components/GoogleChartLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ export class GoogleChartLoader extends React.Component<Props> {
onLoad
} = this.props;
windowGoogleCharts.charts.load(version || "current", {
packages: packages || ["corechart", "controls", "charteditor"],
packages: packages || ["corechart", "controls"],
language: language || "en",
mapsApiKey
});
windowGoogleCharts.charts.setOnLoadCallback(() => {
onLoad(windowGoogleCharts);
});
};
shouldComponentUpdate() {
return false;
shouldComponentUpdate(nextProps: Props) {
return nextProps.chartPackages === this.props.chartPackages;
}
render() {
const { onError } = this.props;
Expand Down
1 change: 1 addition & 0 deletions src/docs/ChartEditor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import Chart from '../index'
component.setState({chartEditor, chartWrapper, google})
console.log("Get Chart Editor")
}}
chartPackages={["corechart", "controls", "charteditor"]}
/>
</div>
}
Expand Down
2 changes: 0 additions & 2 deletions src/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {Playground} from 'docz'
React Google Charts offers a declarative API to make rendering charts fun and easy.




## Install

```sh
Expand Down

0 comments on commit 19b294d

Please sign in to comment.