Closed julianljk closed 6 years ago
Make sure you are specifying a width
and height
in the style
:
<AmCharts.React
style={{
width: "100%",
height: "500px"
}}
options={config} />
Also, remove width
and height
from config
Yup! Adding
<AmCharts.React
style={{
width: "100%",
height: "100%"
}}
options={config} />
worked for me. Thank you!
We followed the migration steps and what used to work in 2.0 does not work in 3.0.
Before:
After:
Followed migration steps from:
<AmCharts.React {...config} />
to<AmCharts.React options={config}
Packages:
AmCharts 3 version (we're using amCharts source code that we serve from our local filesystem)