Jump to content
JChartFX Community
  • 0

Two Charts On One Page





We have created a module in Joomla to display different charts depending on the parameters we provide to each module.

For example we have one chart displaying Groups and another showing Locations.


If we have these on separate pages they seem to work fine, but if we display them both on the same page only one displays.

We assume this is because the two charts are using the same code to create the charts.


Is it possible to create a generic chartobject so for each module it will create it's own version and avoid conflicts?


Our site is at http://demonew.online-communities.org/and you can login using test/test .

You will see the problem under reports>admin tools>testing


We have attached the jquery script below.


Hope that makes sense





Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

In order to have 2 charts you will need 2 different divs in your page to "hold" them. Even though the script you attached seems to try to create multiple divs I only saw one div when using "Inspect" in your page.


Also you are trying to reload the charts every X amount of time, have you tried commenting the setInterval call to see if the problem still persists?



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...