Introduction
Introduction Statistics Contact Development Disclaimer Help
Fixing data and dom_id in ReportTagHelper#flot_report_tag - reportable - Fork o…
Log
Files
Refs
README
---
commit 8f830caa1040030cc4476f989c7395e9dce2fa1a
parent c06073e4e15e458ef1159e11231cc6feae86e20c
Author: Martin Kavalar <[email protected]>
Date: Wed, 26 May 2010 11:08:21 +0200
Fixing data and dom_id in ReportTagHelper#flot_report_tag
Diffstat:
M lib/saulabs/reportable/report_tag_… | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/saulabs/reportable/report_tag_helper.rb b/lib/saulabs/reportab…
@@ -146,12 +146,12 @@ module Saulabs
%Q{<div id="#{options[:dom_id]}" style="width:#{options[:width]}px;hei…
<script type="text\/javascript" charset="utf-8">
$(function() {
- var set = #{data.to_json},
+ var set = #{data.map{|d| d[1] }.to_json},
data = [];
for (var i = 0; i < set.length; i++) {
data.push([i, set[i]]);
}
- $.plot($('#interactive_graph'), [data], );
+ $.plot($('##{options[:dom_id]}'), [data], #{flot_options.to_json});
});
</script>}
end
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.