This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Thu Jul 24 08:48:52 -0700 2008 | [pullmonkey] |
| |
README | Thu Jul 24 08:58:16 -0700 2008 | [pullmonkey] |
| |
Rakefile | Thu Jul 24 08:48:52 -0700 2008 | [pullmonkey] |
| |
assets/ | Mon Jul 28 08:57:00 -0700 2008 | [pullmonkey] |
| |
init.rb | Tue Aug 26 16:39:40 -0700 2008 | [pullmonkey] |
| |
install.rb | Thu Jul 24 08:48:52 -0700 2008 | [pullmonkey] |
| |
lib/ | Tue Aug 19 07:43:16 -0700 2008 | [pullmonkey] |
| |
tasks/ | Thu Jul 24 08:48:52 -0700 2008 | [pullmonkey] |
| |
test/ | Thu Jul 24 08:48:52 -0700 2008 | [pullmonkey] |
| |
uninstall.rb | Thu Jul 24 08:48:52 -0700 2008 | [pullmonkey] |
README
OpenFlashChart
==============
1) rails testing_ofc_2
2) cd testing_ofc_2
3) script/plugin install git://github.com/pullmonkey/open_flash_chart.git
4) script/generate controller test_it
5) Add the following to the test_it_controller.rb in RAILS_ROOT/app/controllers:
class TestItController < ApplicationController
def index
@graph = @graph = open_flash_chart_object(600,300,"/test_it/graph_code")
end
def graph_code
max = 20
tmp = []
10.times do |x|
tmp << rand(max)
end
title = Title.new("MY TITLE")
bar = BarGlass.new
bar.set_values([1,2,3,4,5,6,7,8,9])
chart = OpenFlashChart.new
chart.set_title(title)
chart.add_element(bar)
render :text => chart.to_s
end
end
6) Add the following to index.html.erb in RAILS_ROOT/app/views/test_it/:
<script type="text/javascript" src="/javascripts/swfobject.js"></script>
<%= @graph %>
7) Copy swfobject.js from the plugin's assets/ directory (will make this happen at install time later) to your
RAILS_ROOT/public/javascripts directory
8) Copy open-flash-chart.swf from the plugin's assets/ director to your RAILS_ROOT/public/ directory
9) script/server
10) Let me know how it goes, thanks.
Example
=======
Example above and more to follow here - http://www.pullmonkey.com/projects/open_flash_chart
Copyright (c) 2008 PullMonkey, released under the MIT license




