Adding multiple chart instances on the same page

Martynas Majeris -

You can easily add multiple chart instances on the same page. Please take a look at this example:

Things to look out for:

  • The container for each chart must have a unique "id" property.
  • Avoid using the same global variable for different chart instances- it may lead to unexpected results and hard to pinpoint anomalies.
  • You can add chart initialization code into single AmCharts.ready() call or use multiple calls.
Have more questions? Submit a request


  • Avatar
    miguel de Sousa

    Thanks for this, the issue I'm having is when I have multiple chart instances and add a chart cursor to each, as soon as the first chart scrolls of the page all the cursor on the other charts stop working.


    Any help?

Powered by Zendesk