Skip to content

Instantly share code, notes, and snippets.

@bval
Forked from wnstn/_visit.html.erb
Created September 12, 2012 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bval/3710524 to your computer and use it in GitHub Desktop.
Save bval/3710524 to your computer and use it in GitHub Desktop.
data being passed in
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment