use the correct options - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 915237671c10b4fd66fa530272ed14a49bd91e38
 (DIR) parent d1eb67d6de166aa56e020e4510150c1e91a93fed
 (HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Date:   Thu, 13 May 2010 13:47:41 +0200
       
       use the correct options
       
       Diffstat:
         M lib/saulabs/reportable/config.rb    |      39 ++++++-------------------------
         M lib/saulabs/reportable/report_tag_… |       2 +-
       
       2 files changed, 8 insertions(+), 33 deletions(-)
       ---
 (DIR) diff --git a/lib/saulabs/reportable/config.rb b/lib/saulabs/reportable/config.rb
       @@ -14,41 +14,16 @@ module Saulabs
                :labels     => []
              }
        
       -      mattr_accessor :grafico_options
       -
       -      @@grafico_options = {
       -        :width                  => 300,
       -        :height                 => 100,
       -        :dom_id                 => nil,
       -        :format                 => 'to_i',
       -        :area_opacity           => 0.3,
       -        :markers                => 'value',
       -        :grid                   => false,
       -        :draw_axis              => false,
       -        :plot_padding           => 0,
       -        :padding_left           => 0,
       -        :padding_bottom         => 0,
       -        :padding_right          => 0,
       -        :padding_top            => 0,
       -        :stroke_width           => 2,
       -        :show_vertical_labels   => false,
       -        :show_horizontal_labels => false,
       -        :hover_color            => '#000',
       -        :hover_text_color       => '#fff',
       -        :vertical_label_unit    => '',
       -        :colors                 => { :data => '#2f69bf' },
       -        :curve_amount           => 1,
       -        :focus_hint             => false
       -      }
       -      
              mattr_accessor :raphael_options
              
              @@raphael_options = {
       -        :width                  => 300,
       -        :height                 => 100,
       -        :dom_id                 => nil,
       -        :format                 => 'to_i',
       -        :shade                  => true
       +        :width      => 300,
       +        :height     => 100,
       +        :dom_id     => nil,
       +        :format     => 'to_i',
       +        :shade      => true,
       +        :hover_line_color => '2f69bf',
       +        :hover_fill_color => '2f69bf'
              }
        
            end
 (DIR) diff --git a/lib/saulabs/reportable/report_tag_helper.rb b/lib/saulabs/reportable/report_tag_helper.rb
       @@ -97,7 +97,7 @@ module Saulabs
                    #{data.map { |d| eval options[:format], d[1].send(:binding) }.to_json},
                    #{raphael_options.to_json}
                  ).hover(function() {
       -            this.disc = graph.g.disc(this.x, this.y, 3).attr({fill: "#2F69BF", stroke: '#2F69BF' }).insertBefore(this);
       +            this.disc = graph.g.disc(this.x, this.y, 3).attr({fill: "#{options[:hover_fill_color]}", stroke: '#{options[:hover_line_color]}' }).insertBefore(this);
                    this.flag = graph.g.flag(this.x, this.y, this.value || "0", 0).insertBefore(this);
                    if (this.x + this.flag.getBBox().width > this.paper.width) {
                      this.flag.rotate(-180);