Created
July 17, 2013 07:00
-
-
Save mockra/6018245 to your computer and use it in GitHub Desktop.
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
var data = <%= @deck.stats.curve.to_json.html_safe %>; | |
var ctx = document.getElementById("curve").getContext("2d"); | |
new Chart(ctx).Bar(data); | |
# Output from @deck.stats.curve | |
{:labels=>["1", "2", "3", "4", "5", "6", "7"], | |
:datasets=>[{:fillColor=>"rgba(220,220,220,0.5)", | |
:strokeColor=>"rgba(220,220,220,1)", | |
:data=>[11, 9, 5, 6, 1, 6, 3]}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment