The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Multiple Charts per Page - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16)
+--- Thread: Multiple Charts per Page (/showthread.php?tid=1659)



Multiple Charts per Page - tosuch - Sep 26th, 2011

Ben,

Still loving the Data Visualization module - so much so that I am trying to add multiple chart types to a single - external web page.
I can always get the first chart to load but the second does not dislay anything.

I copied and pasted the code from the Module's Use In Your Own Page PHP section into a php page - it worked fine. I then duplicated the code below the first and the second chart - he no show...

Looking at the HTML code it is a duplicate of what is there for the first chart so suspect it may be duplicate IDs or something?

Tried the Smarty code in a sample Smarty page and got the same result.

Great if you could shed some light as this would be very useful in creating a dashboard app. OK my dashboard app...

All up to date on all FT modules and Core.

As always - [/php]apologies if this is documented...

Ted






RE: Multiple Charts per Page - Ben - Sep 26th, 2011

Hi Ted,

Good to hear! I just finished the demo, and setting up the visualizations was definitely the most fun bit of it. Smile

Regarding the problem, yes - exactly: duplicate IDs. I take it you're adding the same visualization twice in the same page? If you do that, the second one won't show up. When I wrote it, I didn't think anyone would ever want to do that - which was shortsighted of me.

But it's an easy fix. I have a couple of other minor things to change, so I'll release an update today. I'm not totally sure how to best solve it (a random suffix to the ID is simplest, but not great...) but I'll let you know.

- Ben


RE: Multiple Charts per Page - Ben - Sep 26th, 2011

Hi Ted,

All fixed! Upgrade to 1.0.5 and all should be well. Let me know if you spot any other problems!
http://modules.formtools.org/data_visualization/download.php

- Ben


RE: Multiple Charts per Page - tosuch - Sep 27th, 2011

Ben,

Yep - it's GREAT!.

Duplicate forms work great and I retested all other combinations I had and all is looking good. Tested the Smarty code as well. Looking to use this feature to create a charting & data dashboard probably in WordPress.

Thanks very much for the quick fix.

Like the look and idea behind DEMO section will give it a fly over the next week.

Many Thanks

Ted