Created
September 12, 2012 22:41
-
-
Save wnstn/3710521 to your computer and use it in GitHub Desktop.
data being passed in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="outcome-section graph-container"> | |
<h3 class="boxed-header">Overall Progress <%= records.last.integer_value %></h3> | |
<h3 class="boxed-header">Goal <%= ogoal.goal %></h3> | |
<div style="height:300px;" class="graph" data-scale="<%= ogoal.scale.min %>-<%= ogoal.scale.max %>" data-goal="<%= ogoal.goal %>" data-coordata="<%= records.to_a.map { |r| "#{r.progress_report.due_date.to_time.to_i*1000}|#{(r.integer_value)}" }.join(",") %>"> | |
</div> | |
</div> | |
<div class="outcome-section graph-container"> | |
<h3 class="boxed-header">Overall Progress <%= records.last.integer_value %></h3> | |
<h3 class="boxed-header">Goal <%= ogoal.goal %></h3> | |
<div style="height:300px;" class="graph" data-scale="<%= ogoal.scale.min %>-<%= ogoal.scale.max %>" data-goal="<%= records.to_a.map { |r| "#{r.progress_report.due_date.to_time.to_i*1000}|#{(r.goal)}" }.join(",") %>" data-coordata="<%= records.to_a.map { |r| "#{r.progress_report.due_date.to_time.to_i*1000}|#{(r.integer_value)}" }.join(",") %>"> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment