Introduction
Introduction Statistics Contact Development Disclaimer Help
use the correct options - reportable - Fork of reportable required by WarVox, f…
Log
Files
Refs
README
---
commit 915237671c10b4fd66fa530272ed14a49bd91e38
parent d1eb67d6de166aa56e020e4510150c1e91a93fed
Author: Marco Otte-Witte <[email protected]>
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(-)
---
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
diff --git a/lib/saulabs/reportable/report_tag_helper.rb b/lib/saulabs/reportab…
@@ -97,7 +97,7 @@ module Saulabs
#{data.map { |d| eval options[:format], d[1].send(:binding) }.to_j…
#{raphael_options.to_json}
).hover(function() {
- this.disc = graph.g.disc(this.x, this.y, 3).attr({fill: "#2F69BF",…
+ this.disc = graph.g.disc(this.x, this.y, 3).attr({fill: "#{options…
this.flag = graph.g.flag(this.x, this.y, this.value || "0", 0).ins…
if (this.x + this.flag.getBBox().width > this.paper.width) {
this.flag.rotate(-180);
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.