I just removed and reinstalled OpenFlashChart plugin. It still fails
its test. Here’s what happens:
open_flash_chart joe$ rake
(in /projects/trieste2/vendor/plugins/open_flash_chart)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-Ilib:lib
“/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake/rake_test_loader.rb”
“test/open_flash_chart_test.rb”
Loaded suite
/Library/Ruby/Gems/1.8/gems/rake-0.8.2/lib/rake/rake_test_loader
Started
F
Finished in 0.001745 seconds.
OK let’s see.
First an easy answer is “get the OFC plugin in date of October 22nd 2008
on github”. I do not know how to tell git to get a version at a certain
date but I am guessing it is possible.
Then the long answer:
I have tested the edge version of OFC with the code posted on my blog.
It did not work but not with the errors you mentioned. First, you need
to add the following lines to the file open_flash_chart.rb, else you get
something like “NameError (uninitialized constant
TestItController::RadarAxis)”:
So to come back to your troubles: it looks like you do not have the
latest version. I say that because you use “OpenFlashChart::Base.new”
instead of the regular OpenFlashChart.new and because when you run the
test it looks like you do not have a RAILS_ROOT folder in your OFC test
folder.
Finally the rake task with the test does not tell you anything because
there is no test (look at the test code).
New question: I’ve searched, but can’t find an answer. Is there a way
to only show 4 grid lines for a Radar graph that has values up to 100? I
just want it to show the grid lines (and values) for 0, 25, 50, 75, and
100.
Is there some way to set the interval between grid lines to be 25
instead of 1?
Nevermind, you can set the grid intervals with “set_steps”.
New question: I’ve searched, but can’t find an answer. Is there a way
to only show 4 grid lines for a Radar graph that has values up to 100? I
just want it to show the grid lines (and values) for 0, 25, 50, 75, and
100.
Is there some way to set the interval between grid lines to be 25
instead of 1?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.