Jump to content
JChartFX Community
  • 0
Sign in to follow this  
perryworld

Two Charts On One Page

Question

Hi,

 

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

 

Thanks

Richard

jchartfxissue.txt

Share this post


Link to post
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?

 

JuanC

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×