Here is the problem I encountered before:
amCharts doesn't display chart for initially-hidden divs
Then I followed the way by the third answer, which is to