<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ReloadedPC Ashland, Ohio &#187; open flash chart</title>
	<atom:link href="http://www.reloadedpc.com/tag/open-flash-chart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reloadedpc.com</link>
	<description>Small Business Website Development</description>
	<lastBuildDate>Tue, 24 Jan 2012 18:36:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Open Flash Chart 2 + CodeIgniter</title>
		<link>http://www.reloadedpc.com/code-igniter/open-flash-chart-2-codeigniter-2/</link>
		<comments>http://www.reloadedpc.com/code-igniter/open-flash-chart-2-codeigniter-2/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 15:00:03 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Code Igniter]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[ofc]]></category>
		<category><![CDATA[open flash chart]]></category>

		<guid isPermaLink="false">http://www.reloadedpc.com/?p=23</guid>
		<description><![CDATA[Many of you maybe familiar with the CodeIgniter (CI) PHP framework. I was asked by a client recently about creating a graph for some data in a report. Looking through several charting libraries at the CI website, I found a few options listed in the wiki. Open Flash Chart 2 (OFC) seemed like a nice [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you maybe familiar with the <a href="http://www.codeigniter.com">CodeIgniter</a> (CI) PHP framework. I was asked by a client recently about creating a graph for some data in a report. <a rel="attachment wp-att-41" href="http://www.reloadedpc.com/code-igniter/open-flash-chart-2-codeigniter-2/attachment/ci_logo_flame/"><img class="alignright size-full wp-image-41" title="CodeIgniter Logo" src="http://www.reloadedpc.com/wp-content/uploads/2009/07/ci_logo_flame.jpg" alt="Open Flash Chart 2 + CodeIgniter ci logo flame " width="150" height="164" /></a>Looking through several charting libraries at the CI website, I found a few options listed in the wiki. <a href="http://teethgrinder.co.uk/open-flash-chart-2/">Open Flash Chart 2</a> (OFC) seemed like a nice option and was also open source. There was a couple libraries written for CI using Open Flash Chart, but the recent code for OFC has recently changed.<span id="more-23"></span></p>
<p>The new code for Open Flash Chart 2 has separated the PHP classes making it very difficult using in CodeIgniter. Thankfully <a href="http://codeigniter.com/forums/member/97515/">Mesozoic</a> had merged all of the classes back into a single file.</p>
<p>Here are the steps getting CodeIgniter and Open Flash Chart 2 to play nicely together. Download the <a href="http://www.reloadedpc.com/wp-content/uploads/2009/07/ofc.zip">Open Flash Chart 2</a> and extract the files. In this zip file you will need to extract open-flash-chart.swf to the root folder of your server. Then place the other files in the application folder into your CI application folder.</p>
<p>I&#8217;ve also coded  a CI helper for inserting the chart into your page that plays nicely with CI&#8217;s URL helper.  Here&#8217;s example of how to use Open Flash Chart 2:</p>
<p>In the controller of your application add the following code below.</p>
<p>[php]</p>
<p>$this-&amp;gt;load-&amp;gt;helper(&#8216;open-flash-chart&#8217;); // load helper function<br />
$this-&amp;gt;load-&amp;gt;library(&#8216;ofc&#8217;); //load Open Flash Chart<br />
[/php]</p>
<p>Now you can use the code that is shown on the Open Flash Chart website, execpt make a like change when building the chart. You will now use:</p>
<p>[php]</p>
<p>$this-&amp;gt;ofc-&amp;gt;open_flash_chart();<br />
$this-&amp;gt;ofc-&amp;gt;set_title( $title );<br />
$this-&amp;gt;ofc-&amp;gt;add_element( $line );<br />
$this-&amp;gt;ofc-&amp;gt;set_x_axis( $x_axis );<br />
$this-&amp;gt;ofc-&amp;gt;set_y_axis( $y_axis);<br />
return $this-&amp;gt;ofc-&amp;gt;toPrettyString();</p>
<p>[/php]</p>
<p>You can find more information on this on the <a href="http://codeigniter.com/forums/viewreply/605019/">CodeIgniter forums</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.reloadedpc.com/code-igniter/open-flash-chart-2-codeigniter-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 9/18 queries in 0.009 seconds using disk: basic
Object Caching 350/391 objects using disk: basic

Served from: www.reloadedpc.com @ 2012-02-05 04:33:00 -->
