Please ignore the question above. I have resolved the problem. The issue was related to the duplicated container ID generated in the region template. After I set it to use no template, it worked fine although I needed to define a height for the chart. Since the container ID can be dynamic now, I can reuse the code for multiple charts in a page.