File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments