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

Version Path
audit_rails-1.1.2 app/views/audit_rails/audits/analytics.html.erb
audit_rails-1.1.1 app/views/audit_rails/audits/analytics.html.erb
audit_rails-1.1.0 app/views/audit_rails/audits/analytics.html.erb