File tree 8 files changed +25
-13
lines changed
8 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class App extends Component {
127
127
128
128
return (
129
129
< div className = "App" >
130
- < AmCharts . React options = { config } />
130
+ < AmCharts . React style = { { width : "100%" , height : "500px" } } options = { config } />
131
131
</ div >
132
132
) ;
133
133
}
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
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 "
8
8
dependencies :
9
9
create-react-class "^15.5.2"
10
10
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ var Chart = createReactClass({
48
48
render : function ( ) {
49
49
// Render the chart
50
50
return React . createElement ( AmCharts . React , {
51
+ style : {
52
+ width : "100%" ,
53
+ height : "500px"
54
+ } ,
51
55
options : {
52
56
"type" : "serial" ,
53
57
"theme" : "light" ,
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
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 "
8
8
dependencies :
9
9
create-react-class "^15.5.2"
10
10
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ var Chart = createReactClass({
54
54
render : function ( ) {
55
55
// Render the chart
56
56
return React . createElement ( AmCharts . React , {
57
+ style : {
58
+ width : "100%" ,
59
+ height : "500px"
60
+ } ,
57
61
options : {
58
62
"type" : "serial" ,
59
63
"theme" : "light" ,
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
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 "
8
8
dependencies :
9
9
create-react-class "^15.5.2"
10
10
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ var Chart = createReactClass({
54
54
render : function ( ) {
55
55
// Render the chart
56
56
return React . createElement ( AmCharts . React , {
57
+ style : {
58
+ width : "100%" ,
59
+ height : "500px"
60
+ } ,
57
61
options : {
58
62
"type" : "serial" ,
59
63
"theme" : "light" ,
Original file line number Diff line number Diff line change 2
2
# yarn lockfile v1
3
3
4
4
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 "
8
8
dependencies :
9
9
create-react-class "^15.5.2"
10
10
You can’t perform that action at this time.
0 commit comments