<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,50 +42,101 @@ end
 Example
 =======
 
-# GOT THIS WORKING JSON wise ... haven't really tested too much further
-data = []
+# GOT THIS WORKING
 
-for i in (0..31)
-  data &lt;&lt; Math.sin(i * 0.2) * 1.9
-end
+    #$data = array();
+    data = []
+
+    #for( $i=0; $i&lt;6.2; $i+=0.2 )
+    #{
+    #  $tmp = sin($i) * 1.9;
+    #  $data[] = $tmp;
+    #}
+
+    (0..31).each do |x|
+      data &lt;&lt; Math.sin(x * 0.2) * 1.9
+    end
+
+    #include '../php-ofc-library/open-flash-chart.php';
+
+    #$chart = new open_flash_chart();
+    #$chart-&gt;set_title( new title( 'Area Chart' ) );
+
+    chart = OFC::OpenFlashChart.new
+    chart.title = OFC::Title.new(:text =&gt; &quot;Area Chart&quot;)
+
+    #//
+    #// Make our area chart:
+    #//
+    #$area = new area();
+    area = OFC::Area.new
+
+    #// set the circle line width:
+    #$area-&gt;set_width( 2 );
+    area.width = 2
+
+    #$area-&gt;set_default_dot_style( new hollow_dot() );
+    area.dot_style = OFC::HollowDot.new
+
+    #$area-&gt;set_colour( '#838A96' );
+    area.colour = '#838A96'
+
+    #$area-&gt;set_fill_colour( '#E01B49' );
+    area.fill = '#E01B49'
+
+    #$area-&gt;set_fill_alpha( 0.4 );
+    area.fill_alpha = 0.4
+
+    #$area-&gt;set_values( $data );
+    area.values = data
+
+    #// add the area object to the chart:
+    #$chart-&gt;add_element( $area );
+    chart.elements = []
+    chart.elements &lt;&lt; area
+
+    #$y_axis = new y_axis();
+    y_axis = OFC::YAxis.new
 
-chart = OpenFlashChart::OpenFlashChart.new
-chart.title = OpenFlashChart::Title.new(:text =&gt; 'Area Chart')
+    #$y_axis-&gt;set_range( -2, 2, 2 );
+    y_axis.min = -2
+    y_axis.max = 2
+    y_axis.steps = 2
 
-area = OpenFlashChart::Area.new
-area.width = 2
-area.dot_style = OpenFlashChart::HollowDot.new
-area.colour = '#838A96'
-area.fill = '#E01B49'
-area.fill_alpha = 0.4
-area.values = data
+    #$y_axis-&gt;labels = null;
+    y_axis.lables = nil
 
-chart.elements = []
-chart.elements &lt;&lt; area
+    #$y_axis-&gt;set_offset( false );
+    y_axis.offset = 0
 
-y_axis = OpenFlashChart::YAxis.new
-y_axis.min = -2
-y_axis.max = 2
-y_axis.steps = 2
+    #$x_axis = new x_axis();
+    x_axis = OFC::XAxis.new
 
-y_axis.labels = nil
+    #$x_axis-&gt;labels = $data;
+    x_axis.labels = data
 
-y_axis.offset = 0
+    #$x_axis-&gt;set_steps( 2 );
+    x_axis.steps = 2
 
-x_axis = OpenFlashChart::XAxis.new
-x_axis.labels = data
-x_axis.steps = 2
+    #$x_labels = new x_axis_labels();
+    x_labels = OFC::XAxisLabels.new
+    #$x_labels-&gt;set_steps( 4 );
+    x_labels.steps = 4
+    #$x_labels-&gt;set_vertical();
+    x_labels.rotate = 270
 
-x_labels = OpenFlashChart::XAxisLables.new
-x_labels.steps = 4
-x_labels.rotate = 270
+    #// Add the X Axis Labels to the X Axis
+    #$x_axis-&gt;set_labels( $x_labels );
+    x_axis.labels = x_labels
 
-x_axis.labels = x_labels
+    #$chart-&gt;add_y_axis( $y_axis );
+    chart.y_axis = y_axis
+    #$chart-&gt;x_axis = $x_axis;
+    chart.x_axis = x_axis
 
-chart.y_axis = y_axis
-chart.x_axis = x_axis
+    #echo $chart-&gt;toPrettyString();
+    render :text =&gt; chart.render
 
-puts chart.render
 
 
 Example above and more to follow here - http://www.pullmonkey.com/projects/open_flash_chart</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-require 'open_flash_chart'
+require 'ofc'
 
-ActionController::Base.send :include, OpenFlashChart
-ActiveRecord::Base.send :include, OpenFlashChart
+ActionController::Base.send :include, OFC
+ActionController::Base.send :include, OFC::Controller</diff>
      <filename>init.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>45218488302497d54ff596cb3222473e8926358c</id>
    </parent>
  </parents>
  <author>
    <name>PullMonkey</name>
    <email>charlie@pullmonkey.com</email>
  </author>
  <url>http://github.com/pullmonkey/open_flash_chart/commit/6d76dd2e6c27fbb392da50b32842d733e7b0e788</url>
  <id>6d76dd2e6c27fbb392da50b32842d733e7b0e788</id>
  <committed-date>2009-04-13T10:52:17-07:00</committed-date>
  <authored-date>2009-04-13T10:52:17-07:00</authored-date>
  <message>some fixes</message>
  <tree>f8ba25f11c14142189faf042759e7596bd2d3f83</tree>
  <committer>
    <name>PullMonkey</name>
    <email>charlie@pullmonkey.com</email>
  </committer>
</commit>
