Skip to content

Commit 8ff60d6

Browse files
committed
Updating examples
1 parent 25107b8 commit 8ff60d6

File tree

8 files changed

+25
-13
lines changed

8 files changed

+25
-13
lines changed

Diff for: examples/create-react-app/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class App extends Component {
127127

128128
return (
129129
<div className="App">
130-
<AmCharts.React options={config} />
130+
<AmCharts.React style={{ width: "100%", height: "500px" }} options={config} />
131131
</div>
132132
);
133133
}

Diff for: examples/create-react-app/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# yarn lockfile v1
33

44

5-
"@amcharts/amcharts3-react@^2.0.1":
6-
version "2.0.2"
7-
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-2.0.2.tgz#c2942c074f8ab9435c05a30f7ee604fbcf752e5c"
5+
"@amcharts/amcharts3-react@^3.0.0":
6+
version "3.0.0"
7+
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-3.0.0.tgz#9a1a554dc3b104fe252ec7852a216cba781cb335"
88
dependencies:
99
create-react-class "^15.5.2"
1010

Diff for: examples/script/example.js

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ var Chart = createReactClass({
4848
render: function () {
4949
// Render the chart
5050
return React.createElement(AmCharts.React, {
51+
style: {
52+
width: "100%",
53+
height: "500px"
54+
},
5155
options: {
5256
"type": "serial",
5357
"theme": "light",

Diff for: examples/script/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# yarn lockfile v1
33

44

5-
"@amcharts/amcharts3-react@^2.0.0":
6-
version "2.0.2"
7-
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-2.0.2.tgz#c2942c074f8ab9435c05a30f7ee604fbcf752e5c"
5+
"@amcharts/amcharts3-react@^3.0.0":
6+
version "3.0.0"
7+
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-3.0.0.tgz#9a1a554dc3b104fe252ec7852a216cba781cb335"
88
dependencies:
99
create-react-class "^15.5.2"
1010

Diff for: examples/webpack-export/example.js

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ var Chart = createReactClass({
5454
render: function () {
5555
// Render the chart
5656
return React.createElement(AmCharts.React, {
57+
style: {
58+
width: "100%",
59+
height: "500px"
60+
},
5761
options: {
5862
"type": "serial",
5963
"theme": "light",

Diff for: examples/webpack-export/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# yarn lockfile v1
33

44

5-
"@amcharts/amcharts3-react@^2.0.0":
6-
version "2.0.2"
7-
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-2.0.2.tgz#c2942c074f8ab9435c05a30f7ee604fbcf752e5c"
5+
"@amcharts/amcharts3-react@^3.0.0":
6+
version "3.0.0"
7+
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-3.0.0.tgz#9a1a554dc3b104fe252ec7852a216cba781cb335"
88
dependencies:
99
create-react-class "^15.5.2"
1010

Diff for: examples/webpack/example.js

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ var Chart = createReactClass({
5454
render: function () {
5555
// Render the chart
5656
return React.createElement(AmCharts.React, {
57+
style: {
58+
width: "100%",
59+
height: "500px"
60+
},
5761
options: {
5862
"type": "serial",
5963
"theme": "light",

Diff for: examples/webpack/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# yarn lockfile v1
33

44

5-
"@amcharts/amcharts3-react@^2.0.0":
6-
version "2.0.2"
7-
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-2.0.2.tgz#c2942c074f8ab9435c05a30f7ee604fbcf752e5c"
5+
"@amcharts/amcharts3-react@^3.0.0":
6+
version "3.0.0"
7+
resolved "https://registry.yarnpkg.com/@amcharts/amcharts3-react/-/amcharts3-react-3.0.0.tgz#9a1a554dc3b104fe252ec7852a216cba781cb335"
88
dependencies:
99
create-react-class "^15.5.2"
1010

0 commit comments

Comments
 (0)