﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts v3 / Using FusionCharts / FusionCharts and ASP  / CodeCharge Studio / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 02:12:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Solution:&lt;P&gt;Create a folder called Charts, then a subfolder called Includes and then one in there of ChartsSWF. You end up with this structure:&lt;BR&gt;&lt;BR&gt;Charts&lt;BR&gt;     Includes&lt;BR&gt;          ChartsSWF&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Now put your SWF files into the ChartsSWF folder&lt;BR&gt;In the Includes folder place FusionCharts.asp and FusionCharts.js.&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Now in the Charts Folder, create two pages; Charts.asp and ChartsData.asp&lt;BR&gt;&lt;BR&gt;Edit Charts.asp and add [code]&amp;lt;script language="Javascript" src="Includes/FusionCharts.js"&amp;gt;&amp;lt;/script&amp;gt;[/code] just above the &amp;lt;/head&amp;gt; tag in the HTML tab.&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Switch to the Code tab and insert:&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;[code]&amp;lt;!-- #INCLUDE VIRTUAL="/ReportsV1/Charts/Includes/FusionCharts.asp" --&amp;gt;[/code] to the 'Includes Common Files' section at the page top and then move to the bottom of the page and add:&lt;BR&gt;&lt;BR&gt;[code]'Variable to contain dataURL&lt;BR&gt; Dim strDataURL&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Set DataURL with animation property to 1&lt;BR&gt;'NOTE: It's necessary to encode the dataURL if you've added parameters to it&lt;BR&gt;   'strDataURL = encodeDataURL("ChartsData.asp?animate=1")&lt;BR&gt;   strDataURL = "ChartsData.asp"&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Create the chart - Pie 3D Chart with dataURL as strDataURL&lt;BR&gt;   Call renderChart("Includes/ChartsSWF/Column3D.swf", strDataURL, "", "stats", 600, 400, false, false)[/code]&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;FONT color=#119911&gt;Open the ChartsData.asp&lt;/FONT&gt; &lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Open the HTML tab and remove all code, leave it blank.&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Add Custon Code to On Initialize Code and add the following, edit as needed:&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;[code]dim statsdim rs&lt;BR&gt;dim sql&lt;BR&gt;dim cn&lt;BR&gt;dim field1 'Hold data returned&lt;BR&gt;dim field2 'Hold name&lt;BR&gt;dim strXML 'strXML will be used to store the entire XML document generated&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;BR&gt;'Default.asp has passed us a property animate. We request that.&lt;BR&gt; Dim animateChart&lt;BR&gt; animateChart = Request.QueryString("animate")&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Set default value of 1&lt;BR&gt; if animateChart="" then&lt;BR&gt;      animateChart = "1"&lt;BR&gt; end if&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Make db conx&lt;BR&gt;cn = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=Your server IP;DATABASE=YourDB;USER=root;PASSWORD=YourPassword;OPTION=3"&lt;BR&gt;set rs = server.createobject("adodb.recordset")&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Create your SQL here, this was mine&lt;BR&gt;sql = "SELECT Count(tkt_tickets.ID) AS field1, Tkt_tickets.ResolvedBy as field2 FROM contacts INNER JOIN Tkt_tickets ON contacts.LName = Tkt_tickets.ResolvedBy Where DAYLIGHT=1 GROUP BY Tkt_tickets.ResolvedBy"&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Start XML data&lt;BR&gt;strXML = "&amp;lt;chart caption=' Tickets Closed By Daylight Operators' subCaption='1/1/2006 to 12/31/2006' pieSliceDepth='30' showBorder='0' formatNumberScale='0' numberSuffix=' Tickets' animation='0'&amp;gt;"&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;&lt;BR&gt;'Open db and grab records&lt;BR&gt; rs.open sql, cn&lt;BR&gt;    do while not rs.eof&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Write the data line&lt;BR&gt; strXML = strXML &amp;amp; "&amp;lt;set label='" &amp;amp; rs("field2") &amp;amp; "' value='" &amp;amp; rs("field1")&amp;amp; "'/&amp;gt;"&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Go to next record&lt;BR&gt;    rs.movenext&lt;BR&gt;    loop&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Finally, close &amp;lt;chart&amp;gt; element&lt;BR&gt; strXML = strXML &amp;amp; "&amp;lt;/chart&amp;gt;"&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Close loop and conx&lt;BR&gt; rs.close&lt;BR&gt;Set rs = nothing&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Set Proper output content-type&lt;BR&gt; Response.ContentType = "text/xml"&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;'Just write out the XML data&lt;BR&gt;'NOTE THAT THIS PAGE DOESN'T CONTAIN ANY HTML TAG, WHATSOEVER&lt;BR&gt; Response.Write(strXML)&lt;BR&gt;[/code]&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Good luck, It does work well and can be replicated just by coping the pages and changing the query.&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;Thanks to all who helped me get this working.</description><pubDate>Wed, 11 Apr 2007 21:46:56 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>So, effectively before the FusionCharts.js is being included, the chart code is being invoked?&lt;/P&gt;&lt;P&gt;In that case, can you try using the renderChart() (ASP Function) from FusionCharts.asp? That will make CCS think of the code as ASP - and this code outputs HTML code for the chart.</description><pubDate>Mon, 19 Mar 2007 01:46:47 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>CCS separates the code during development and the HTML is included in the ASP when it runs. &lt;BR&gt;The html page gets the .js include &lt;BR&gt;&lt;BR&gt;A label is then added to the page and the Code for the chart is placed in the before show event on the label which is in the ASP file. &lt;BR&gt;&lt;BR&gt;What appears to be happening is the before event triggers and displays what it has from the ASP file and then goes back to include the .js from the html which then will render an empty chart. &lt;BR&gt;&lt;BR&gt;I have it working in PHP but can not get it to do what I need it to ASAP. :w00t: &lt;BR&gt;&lt;BR&gt;</description><pubDate>Fri, 16 Mar 2007 14:51:35 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Don,&lt;/P&gt;&lt;P&gt;I've not understood this part, as I'm not familiar with CodeCharge Studio (though, I've a lot of experience in ASP). If you can please elaborate more on the process flow, I can help you with this.</description><pubDate>Fri, 16 Mar 2007 01:50:06 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>This is the Before Show code:&lt;P&gt;[code]dim stats&lt;BR&gt;dim rs&lt;BR&gt;dim sql&lt;BR&gt;dim cn&lt;BR&gt;dim field1&lt;BR&gt;dim field2&lt;/P&gt;&lt;P&gt;'strXML will be used to store the entire XML document generated&lt;BR&gt;Dim strXML&lt;/P&gt;&lt;P&gt;'Make db conx&lt;BR&gt;cn = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=1.1.1.1;&lt;BR&gt;DATABASE=netops;USER=root;&lt;BR&gt;PASSWORD=password;OPTION=3"&lt;BR&gt;set rs = server.createobject("adodb.recordset")&lt;BR&gt;sql = "SELECT Count(tkt_tickets.ID) AS field1, Tkt_tickets.ResolvedBy &lt;BR&gt;as field2 FROM contacts INNER JOIN Tkt_tickets ON &lt;BR&gt;contacts.LName = Tkt_tickets.ResolvedBy &lt;BR&gt;Where LEAD=1 GROUP BY Tkt_tickets.ResolvedBy"&lt;/P&gt;&lt;P&gt;'Start XML data&lt;BR&gt;strXML = "&amp;lt;chart caption=' Tickets' subCaption='' pieSliceDepth='30' &lt;BR&gt;showBorder='1' formatNumberScale='0' numberSuffix=' Tickets'&amp;gt;" &lt;/P&gt;&lt;P&gt;&lt;BR&gt;'Open db and grab records&lt;BR&gt; rs.open sql, cn&lt;/P&gt;&lt;P&gt;   do while not rs.eof&lt;BR&gt;'Write the data line&lt;BR&gt;strXML = strXML &amp;amp; "&amp;lt;set label='" &amp;amp; rs("field2") &amp;amp; "' value='" &amp;amp; rs("field1")&amp;amp; "'/&amp;gt;"&lt;BR&gt;'Print data to &lt;BR&gt;Print rs("field2") &amp;amp; " " &amp;amp; rs("field1") &amp;amp; "&amp;lt;br&amp;gt;"&lt;/P&gt;&lt;P&gt;'Go to next record&lt;BR&gt;    rs.movenext&lt;BR&gt;    loop&lt;/P&gt;&lt;P&gt;'Close loop and conx&lt;BR&gt;rs.close&lt;BR&gt;set rs = nothing&lt;/P&gt;&lt;P&gt;'Finally, close &amp;lt;chart&amp;gt; element&lt;BR&gt; 'Finally, close &amp;lt;chart&amp;gt; element&lt;BR&gt; strXML = strXML &amp;amp; "&amp;lt;/chart&amp;gt;"&lt;BR&gt; &lt;BR&gt;'Create the chart - Pie 3D Chart with data from strXML&lt;BR&gt;Call renderChart("/Includes/Pie3D.swf", "", strXML, "stats", 600, 300, false, false)&lt;/P&gt;&lt;P&gt;Set rs = nothing[/code]</description><pubDate>Thu, 15 Mar 2007 22:10:10 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>I may nave the reason but not the answer as to why. :w00t:&lt;br&gt;&lt;br&gt;here is the code after it runs...&lt;br&gt;&lt;br&gt;[code]&amp;lt;!-- START Script Block for Chart stats --&amp;gt;&lt;br&gt;&amp;lt;div id='statsDiv' align='center'&amp;gt;&lt;br&gt;Chart.&lt;br&gt;&lt;br&gt;&amp;lt;/div&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;//Instantiate the Chart&lt;br&gt;var chart_stats = new FusionCharts("/Includes/Pie3D.swf", "stats", "600", "300", "0", "0");&lt;br&gt;&lt;br&gt;//Provide entire XML data using dataXML method &lt;br&gt;chart_stats.setDataXML("&amp;lt;chart caption=' Tickets' subCaption='' pieSliceDepth='30' &lt;br&gt;showBorder='1' formatNumberScale='0' numberSuffix=' Tickets'&amp;gt;&lt;br&gt;&amp;lt;set label='CRAG' value='1738'/&amp;gt;&amp;lt;set label='RUT' value='2955'/&amp;gt;&lt;br&gt;&amp;lt;set label='SWEET' value='799'/&amp;gt;&amp;lt;set label='YANO' value='24'/&amp;gt;&amp;lt;/chart&amp;gt;");&lt;br&gt;&lt;br&gt;//Finally, render the chart.&lt;br&gt;chart_stats.render("statsDiv");&lt;br&gt;&amp;lt;/script&amp;gt;&lt;br&gt;&amp;lt;!-- END Script Block for Chart stats --&amp;gt;&lt;br&gt;&amp;lt;%@ Language=VBScript %&amp;gt;&lt;br&gt;&amp;lt;html&amp;gt;&lt;br&gt;&amp;lt;head&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;TITLE&amp;gt;&lt;br&gt;NOC Test Page&lt;br&gt;&amp;lt;/TITLE&amp;gt;&lt;br&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br&gt;&amp;lt;!--&lt;br&gt;body {&lt;br&gt;font-family: Arial, Helvetica, sans-serif;&lt;br&gt;font-size: 12px;&lt;br&gt;}&lt;br&gt;.text{&lt;br&gt;font-family: Arial, Helvetica, sans-serif;&lt;br&gt;font-size: 12px;&lt;br&gt;}&lt;br&gt;--&amp;gt;&lt;br&gt;&amp;lt;/style&amp;gt;&lt;br&gt;&amp;lt;SCRIPT LANGUAGE="Javascript" SRC="Includes/FusionCharts.js"&amp;gt;&amp;lt;/SCRIPT&amp;gt;&lt;br&gt;&amp;lt;/head&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;body&amp;gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;p align="center"&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;&amp;lt;br&amp;gt;&lt;br&gt;&amp;lt;a href="/ReportsV1/DEV/Includes/NoChart.html" target="_blank"&amp;gt;Unable to see the chart above?&amp;lt;/a&amp;gt; &amp;lt;/p&amp;gt;&lt;br&gt;&amp;lt;/body&amp;gt;&lt;br&gt;&amp;lt;/html&amp;gt;[/code]&lt;br&gt;&lt;br&gt;It appears that when I place the code into the "before show" event it executes before loading the html, its backwards. In CodeCharge Studio (CCS) using PHP, this works, in ASP it will not.</description><pubDate>Thu, 15 Mar 2007 22:07:48 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Got past that error.&lt;/P&gt;&lt;P&gt;I created a sub folder called include and placed the .JS, .asp, and the Pie3d.swf file in it and made sure it points to the file.&lt;/P&gt;&lt;P&gt;I added a print atatement and see my data on the page when it does the loop.&lt;/P&gt;&lt;P&gt;I see no chart at all or attempt to render it. :w00t: The page is blank except the data printed from within the loop.</description><pubDate>Thu, 15 Mar 2007 20:48:41 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>This is when you've not included FusionCharts.js in the HTML file.</description><pubDate>Thu, 15 Mar 2007 06:48:49 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Made some headway but I'm getting an error when it goes to render the chart:&lt;/P&gt;&lt;P&gt;Line: 10&lt;BR&gt;Char: 3&lt;BR&gt;Error: 'FusionCharts' is undefined&lt;BR&gt;Code: 0&lt;BR&gt;URL: http:// IP /ReportsV1/DEV/NewPage1.asp&lt;BR&gt;&lt;BR&gt;Do you want to continue running scripts on this page.&lt;BR&gt;I select yes and I get a blank page with "Chart." on top.&lt;/P&gt;&lt;P&gt;I have seen referance to this on several sites but no resolution.</description><pubDate>Wed, 14 Mar 2007 22:48:59 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>I have made some progress in that I can get some of the data using the db examples but can I get pointed to an example like the BasicDBExample.asp with only one table involved. The data I need to pull in would come from a query like this...&lt;br&gt;&lt;br&gt;Table:&lt;br&gt;ID, TktNbr, Fname, LName, Lead, Agent&lt;br&gt;1,123,John,Smith,1,0&lt;br&gt;2,124,Jane,Doe,0,1&lt;br&gt;3,125,Bob,Jones,1,0  &lt;br&gt;4,126,John,Smith,1,0&lt;br&gt;&lt;br&gt;select count(id) as Tickets, concat(FName," ",LName) as Name where Lead =1 Group by Lname  &lt;br&gt;&lt;br&gt;Resulting in:&lt;br&gt;2, John Smith&lt;br&gt;1, Bob Jones&lt;br&gt;&lt;br&gt;Now I would need that in to an xmlString&lt;br&gt;&lt;br&gt;Once I get that working, I will be able to see and document how to make CodeCharge Studio use it.  I know this may be simple but I just have never had to do this, CCS makes it so easy and does not use XML.</description><pubDate>Tue, 13 Mar 2007 01:58:49 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Yes Don. We would be glad to help you with all integration/debugging issues.</description><pubDate>Fri, 09 Mar 2007 01:19:55 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Palliv,&lt;/P&gt;&lt;P&gt;Please read this thread when you have time.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.yessoftware.com/posts.php?post_id=83883&amp;amp;s_keyword=Fusion"&gt;http://forums.yessoftware.com/posts.php?post_id=83883&amp;amp;s_keyword=Fusion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This CCS user has it working with PHP and I will need it working with ASP as well.&lt;BR&gt;I am willing to attempt to document this but may need some help in debugging the process.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR&gt;Don</description><pubDate>Thu, 08 Mar 2007 17:11:00 GMT</pubDate><dc:creator>djjwp</dc:creator></item><item><title>RE: CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;As of now, we've not yet integrated FusionCharts with CCS. However, if someone is willing to take this initiative, we can help in all possible ways.</description><pubDate>Wed, 07 Mar 2007 23:49:20 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>CodeCharge Studio</title><link>http://www.fusioncharts.com/forum/Topic469-30-1.aspx</link><description>I will be purchasing Fusion Charts and will need to get it working within CCS projects. I'm looking for anyone who has done this before and can offer any type of "how to". :w00t:&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Don</description><pubDate>Wed, 07 Mar 2007 22:02:59 GMT</pubDate><dc:creator>djjwp</dc:creator></item></channel></rss>