<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using dynamic data with charts</title>
	<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/</link>
	<description>by Antanas Marcelionis</description>
	<pubDate>Sat, 22 Nov 2008 03:30:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Ramesh</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-54</link>
		<author>Ramesh</author>
		<pubDate>Fri, 11 May 2007 11:48:19 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-54</guid>
					<description>Can you post some asp examples for doing the same</description>
		<content:encoded><![CDATA[<p>Can you post some asp examples for doing the same</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ali</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-99</link>
		<author>Ali</author>
		<pubDate>Wed, 01 Aug 2007 17:11:02 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-99</guid>
					<description>Can you please show all the source codes for the two pages: amline_data.php and index.php.

And if possible, can you show how to create a column chart?

thanx</description>
		<content:encoded><![CDATA[<p>Can you please show all the source codes for the two pages: amline_data.php and index.php.</p>
<p>And if possible, can you show how to create a column chart?</p>
<p>thanx</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Srujan</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-100</link>
		<author>Srujan</author>
		<pubDate>Thu, 09 Aug 2007 16:26:28 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-100</guid>
					<description>How can I read data from an Oracle database and show it in the graphs format, can you please help me how to do it? 
Please let me know if you need any information</description>
		<content:encoded><![CDATA[<p>How can I read data from an Oracle database and show it in the graphs format, can you please help me how to do it?<br />
Please let me know if you need any information</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Joe Stone</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-117</link>
		<author>Joe Stone</author>
		<pubDate>Tue, 28 Aug 2007 08:24:26 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-117</guid>
					<description>Why do you hide the usefull PHP Exemples from the amline_data.php ?

Maybe some People can guess the code !?</description>
		<content:encoded><![CDATA[<p>Why do you hide the usefull PHP Exemples from the amline_data.php ?</p>
<p>Maybe some People can guess the code !?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Stef</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-118</link>
		<author>Stef</author>
		<pubDate>Wed, 29 Aug 2007 11:51:27 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-118</guid>
					<description>Hi, yep, I agree to what Joe said: Can't you publish the content of amline_data.php? I think that is a pretty important part of the whole dynamic stuff... Would be useful to see how you achieve that!

Thanks for any hints!</description>
		<content:encoded><![CDATA[<p>Hi, yep, I agree to what Joe said: Can&#8217;t you publish the content of amline_data.php? I think that is a pretty important part of the whole dynamic stuff&#8230; Would be useful to see how you achieve that!</p>
<p>Thanks for any hints!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: admin</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-120</link>
		<author>admin</author>
		<pubDate>Thu, 30 Aug 2007 04:11:07 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-120</guid>
					<description>Sorry, here is the source:

http://www.amcharts.com/line/examples/dynamic_data/amline/amline_data.php_</description>
		<content:encoded><![CDATA[<p>Sorry, here is the source:</p>
<p><a href="http://www.amcharts.com/line/examples/dynamic_data/amline/amline_data.php_" rel="nofollow">http://www.amcharts.com/line/examples/dynamic_data/amline/amline_data.php_</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mark Lewis</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-160</link>
		<author>Mark Lewis</author>
		<pubDate>Tue, 11 Sep 2007 18:16:50 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-160</guid>
					<description>Hi Antanas,

Love this application! But I'm not a coder...I have applied a slightly different approach and use MSSQL templates to generate the XML dynamically which also allows variables to be set and let's the SQL template do the hard work.

Only problem is that currently I cannot reference the XML directly (http) in the line
so.addVariable("data_file"   ...
since I believe the path is set by so.addVariable("path"...  for flash.
I am currently doing an automated (each 15min) HTTP download from the MSSQL virtual directory to a subfolder which can be accessed by the AMcharts code... This works just great....

However I want more! I wanted to be able to make use of the useful parameter capability within MSSQL templates to filter the data 'on the fly' using the URL feature within AMChart attributes.... the cleanest way to achieve this would be to enable me to do something like this...

Set the URL attribute in the XML to link to 

.../xml_reports/am_reports.php?Producttype=Now

then set in my PHP page displaying the chart...
 

            ....
		so.addVariable("path", "report_data/");
		so.addVariable("settings_file", escape("report_data/Regs_by_keywd_by_wk/amcolumn_settings.xml"));
		so.addVariable("data_file", escape("$PType"));

But of course this does not work... Any thoughts / suggestions ?

Kind regards,

Mark Lewis
London, England</description>
		<content:encoded><![CDATA[<p>Hi Antanas,</p>
<p>Love this application! But I&#8217;m not a coder&#8230;I have applied a slightly different approach and use MSSQL templates to generate the XML dynamically which also allows variables to be set and let&#8217;s the SQL template do the hard work.</p>
<p>Only problem is that currently I cannot reference the XML directly (http) in the line<br />
so.addVariable(&#8221;data_file&#8221;   &#8230;<br />
since I believe the path is set by so.addVariable(&#8221;path&#8221;&#8230;  for flash.<br />
I am currently doing an automated (each 15min) HTTP download from the MSSQL virtual directory to a subfolder which can be accessed by the AMcharts code&#8230; This works just great&#8230;.</p>
<p>However I want more! I wanted to be able to make use of the useful parameter capability within MSSQL templates to filter the data &#8216;on the fly&#8217; using the URL feature within AMChart attributes&#8230;. the cleanest way to achieve this would be to enable me to do something like this&#8230;</p>
<p>Set the URL attribute in the XML to link to </p>
<p>&#8230;/xml_reports/am_reports.php?Producttype=Now</p>
<p>then set in my PHP page displaying the chart&#8230;</p>
<p>            &#8230;.<br />
		so.addVariable(&#8221;path&#8221;, &#8220;report_data/&#8221;);<br />
		so.addVariable(&#8221;settings_file&#8221;, escape(&#8221;report_data/Regs_by_keywd_by_wk/amcolumn_settings.xml&#8221;));<br />
		so.addVariable(&#8221;data_file&#8221;, escape(&#8221;$PType&#8221;));</p>
<p>But of course this does not work&#8230; Any thoughts / suggestions ?</p>
<p>Kind regards,</p>
<p>Mark Lewis<br />
London, England</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mark Lewis</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-161</link>
		<author>Mark Lewis</author>
		<pubDate>Tue, 11 Sep 2007 18:20:01 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-161</guid>
					<description>sorry, that $PType is defined as
$PType = 'http://62.233.100.208/xmlreport/AMcharts/Registrations2.xml?Producttype='.$_REQUEST['Producttype'];</description>
		<content:encoded><![CDATA[<p>sorry, that $PType is defined as<br />
$PType = &#8216;http://62.233.100.208/xmlreport/AMcharts/Registrations2.xml?Producttype=&#8217;.$_REQUEST[&#8217;Producttype&#8217;];</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Guido</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-179</link>
		<author>Guido</author>
		<pubDate>Mon, 24 Sep 2007 21:14:07 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-179</guid>
					<description>How can i graph this : 
http://uk.old.finance.yahoo.com/d/quotes.csv?s=LAN.L&#38;f=sohgl&#38;e=.csv

Thanx :-)</description>
		<content:encoded><![CDATA[<p>How can i graph this :<br />
<a href="http://uk.old.finance.yahoo.com/d/quotes.csv?s=LAN.L&amp;f=sohgl&amp;e=.csv" rel="nofollow">http://uk.old.finance.yahoo.com/d/quotes.csv?s=LAN.L&amp;f=sohgl&amp;e=.csv</a></p>
<p>Thanx :-)</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-192</link>
		<author>Steven</author>
		<pubDate>Thu, 11 Oct 2007 07:02:14 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-192</guid>
					<description>I need the code of the example!!!!!!!
I even don't know how to set the "chart_data" in the amline script, so the code of the example would be very helpful.</description>
		<content:encoded><![CDATA[<p>I need the code of the example!!!!!!!<br />
I even don&#8217;t know how to set the &#8220;chart_data&#8221; in the amline script, so the code of the example would be very helpful.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-193</link>
		<author>Steven</author>
		<pubDate>Thu, 11 Oct 2007 07:13:27 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-193</guid>
					<description>The same as the No.8 example of Line &#38; Area chart which can reload the data every x seconds, I need the code too. Please tell where can I get the code , or send it to my mail.Thank you!</description>
		<content:encoded><![CDATA[<p>The same as the No.8 example of Line &amp; Area chart which can reload the data every x seconds, I need the code too. Please tell where can I get the code , or send it to my mail.Thank you!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Border</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-221</link>
		<author>Border</author>
		<pubDate>Mon, 12 Nov 2007 05:03:18 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-221</guid>
					<description>Can you post some Django examples for dynamic data.

Thanks.</description>
		<content:encoded><![CDATA[<p>Can you post some Django examples for dynamic data.</p>
<p>Thanks.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alec</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-512</link>
		<author>Alec</author>
		<pubDate>Thu, 06 Dec 2007 01:12:49 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-512</guid>
					<description>Excellent charts! Congratulations on this product.

I am creating dynamic charts by putting the HTML code that loads the flash object in my HTML templates like this:


		// 
	

Then a php script pulls the data from the database and loads it into the template using the {chart_data} and {chart_settings} tags like this:

$chart_data = get_data_from_db();
$chart_data = implode('\n', $chart_data);
echo parse_template(HTML_REPORT_CHART, array(
	 height			=&#62; '1000'
	,chart_data		=&#62; $chart_data
        ,chart_settings 	=&#62; $settings
));

This solution is obvious but thought I would post it for those who want to cleanly separate data, logic, and presentation layers.</description>
		<content:encoded><![CDATA[<p>Excellent charts! Congratulations on this product.</p>
<p>I am creating dynamic charts by putting the HTML code that loads the flash object in my HTML templates like this:</p>
<p>		// </p>
<p>Then a php script pulls the data from the database and loads it into the template using the {chart_data} and {chart_settings} tags like this:</p>
<p>$chart_data = get_data_from_db();<br />
$chart_data = implode(&#8217;\n&#8217;, $chart_data);<br />
echo parse_template(HTML_REPORT_CHART, array(<br />
	 height			=&gt; &#8216;1000&#8242;<br />
	,chart_data		=&gt; $chart_data<br />
        ,chart_settings 	=&gt; $settings<br />
));</p>
<p>This solution is obvious but thought I would post it for those who want to cleanly separate data, logic, and presentation layers.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alec</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-513</link>
		<author>Alec</author>
		<pubDate>Thu, 06 Dec 2007 01:13:47 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-513</guid>
					<description>Oops.... here is the text between the script tags that goes into the HTML template:

var so = new SWFObject("flash/amcolumn/amcolumn.swf", "amcolumn", "100%", "{height}", "8", "#ffffff");
		so.addVariable("chart_data", "{chart_data}");
		so.addVariable("chart_settings", "{chart_settings}");
		so.addVariable("preloader_color", "#999999");
		so.write("flashcontent");</description>
		<content:encoded><![CDATA[<p>Oops&#8230;. here is the text between the script tags that goes into the HTML template:</p>
<p>var so = new SWFObject(&#8221;flash/amcolumn/amcolumn.swf&#8221;, &#8220;amcolumn&#8221;, &#8220;100%&#8221;, &#8220;{height}&#8221;, &#8220;8&#8243;, &#8220;#ffffff&#8221;);<br />
		so.addVariable(&#8221;chart_data&#8221;, &#8220;{chart_data}&#8221;);<br />
		so.addVariable(&#8221;chart_settings&#8221;, &#8220;{chart_settings}&#8221;);<br />
		so.addVariable(&#8221;preloader_color&#8221;, &#8220;#999999&#8243;);<br />
		so.write(&#8221;flashcontent&#8221;);</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: joko</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-601</link>
		<author>joko</author>
		<pubDate>Mon, 17 Dec 2007 07:19:36 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-601</guid>
					<description>how do you do it in asp. can you show me example of that??? thank you</description>
		<content:encoded><![CDATA[<p>how do you do it in asp. can you show me example of that??? thank you</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Harshad Riswadkar</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-635</link>
		<author>Harshad Riswadkar</author>
		<pubDate>Thu, 27 Dec 2007 11:22:18 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-635</guid>
					<description>Hi,

How can I do this in an asp.net page? I am using ASP.NET 2.0 and trying to show data of each investor in pie chart. I have a grid which displays data of all investor and when clicked on each investor the pie chart is loaded.

The problem is that pie chart does not refresh/reloads to show data of another user. It displays the data correctly only for the first time.

Can any one help me on this?

Thanks,
Harshad</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How can I do this in an asp.net page? I am using ASP.NET 2.0 and trying to show data of each investor in pie chart. I have a grid which displays data of all investor and when clicked on each investor the pie chart is loaded.</p>
<p>The problem is that pie chart does not refresh/reloads to show data of another user. It displays the data correctly only for the first time.</p>
<p>Can any one help me on this?</p>
<p>Thanks,<br />
Harshad</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: admin</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-636</link>
		<author>admin</author>
		<pubDate>Thu, 27 Dec 2007 11:52:35 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-636</guid>
					<description>please, post your support questions to support forum:
www.amcharts.com/forum</description>
		<content:encoded><![CDATA[<p>please, post your support questions to support forum:<br />
<a href="http://www.amcharts.com/forum" rel="nofollow">www.amcharts.com/forum</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: 10 flash-компонентов для построения графиков для rich web. &#124; Cyrill</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-652</link>
		<author>10 flash-компонентов для построения графиков для rich web. &#124; Cyrill</author>
		<pubDate>Fri, 25 Jan 2008 10:53:37 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-652</guid>
					<description>[...] классические графики X-Y и многое другое. На сайте и в блоге разработчика приводятся образцы использования и документация. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] классические графики X-Y и многое другое. На сайте и в блоге разработчика приводятся образцы использования и документация. [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: 11 flash-компонентов для построения графиков для rich web &#124; Записки маленького юни</title>
		<link>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-2233</link>
		<author>11 flash-компонентов для построения графиков для rich web &#124; Записки маленького юни</author>
		<pubDate>Mon, 10 Mar 2008 09:28:36 +0000</pubDate>
		<guid>http://www.marcelionis.com/2007/05/03/using-dynamic-data-with-charts/#comment-2233</guid>
					<description>[...] классические графики X-Y и многое другое. На сайте и в блоге разработчика приводятся образцы использования и документация. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] классические графики X-Y и многое другое. На сайте и в блоге разработчика приводятся образцы использования и документация. [&#8230;]</p>
]]></content:encoded>
				</item>
</channel>
</rss>
