One trick we've tried is to negate the numbers, so in reality the
chart shows the range from -1 (at the top) to -100 (at the bottom).
This gives the line the right shape, and even the axis tick labels
look good, but unfortunately there's a label next to each point on the
line showing its value -- and hence showing a negative number. So
where it shows that something was ranked 6th, a big fat "-6" shows up
on the chart.
Is there a better/more proper way to invert the direction of the
chart's Y-axis?
If not, is there a way to change what shows up in those big labels by
each point in each series so we can make it show a positive number
instead?
Is there a way to hide said labels altogether?
Is there a way to put tooltips on these points instead that appear
when the user mouses over the points on the line?
When you define your series, you can pass the values has a hash,
this will
allow you to either set a label or a tooltip for the actual value
you would like to be displayed.
ie chart.add :series, "fred", [ { :value => 10, :label => "Hello
10" }, ... ]
or chart.add :series, "fred", [ { :value => 10, :tooltip => "Hello
10" }, ... ]
-Fernand
On Feb 8, 11:34 pm, "fernand.gali...@gmail.com"
Hi,
I have used the Ziya plugin previously but in this project I can not get
the GEM to work such that I can operate the server in production mode.
I have tried both the derailed-ziya from github.com which gives me
version 2.1.5 and ziya which gives me 2.1.7.
The problem arises from the initializers files. According to the
documentation you need something like:
# Pull in the ZiYa gem framework
gem "ziya", ">= 2.1.7"
require 'ziya'
# Initializes the ZiYa Framework
Ziya.initialize(
:logger => RAILS_DEFAULT_LOGGER,
:themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public
charts themes])
)
But once you try to boot in production mode I get:
./script/server -e production
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in
`load_missing_constant': uninitialized constant Logging (NameError)
from
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
`const_missing'
from
/usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in
`const_missing'
from /usr/lib64/ruby/gems/1.8/gems/logging-1.3.0/lib/logging.rb:504
from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:33
What did I overlook ? I tried the alternate version for the logger:
:logger => File.join( File.dirname(__FILE__), %w[.. log ziya.log])
but that still has the same problem.
/S
--
You received this message because you are subscribed to the Google Groups "ZiYa Plugin" group.
To post to this group, send email to ziya-...@googlegroups.com.
To unsubscribe from this group, send email to ziya-plugin...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ziya-plugin?hl=en.