Sha256: abdf3ef6276d87728c08595c60c59a6703d932b379e5871a66931caf259adc1e
Contents?: true
Size: 662 Bytes
Versions: 3
Compression:
Stored size: 662 Bytes
Contents
<%= javascript_include_tag "Chart.min"%> <div id='analyticsByUser'>Analytics by User</div> <br/> <canvas id="canvas" height="450" width="600"></canvas> <script> var lineChartData = { labels : <%= "#{@analysis_by_user_name.keys}".html_safe %>, datasets : [ { fillColor : "rgba(220,220,220,0.5)", strokeColor : "rgba(220,220,220,1)", pointColor : "rgba(220,220,220,1)", pointStrokeColor : "#fff", data : <%= @analysis_by_user_name.values %> } ] } var myLine = new Chart(document.getElementById("canvas").getContext("2d")).Line(lineChartData); </script>
Version data entries
3 entries across 3 versions & 1 rubygems