Sha256: a2c6918d9f502bc13c6e9ec0bba51c5d3ceea5c125ad618b45bfa1a03ce20694

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(document).ready(function () {
  $('input.tags').tagsInput({
    'unique':true,
    'delimiter':" ",
    'defaultText':'add a scope',
    'height':'78px',
    'width':'295px'
  });
});

var chart;
function createChart(days, times, uri) {
   chart = new Highcharts.Chart({
      chart: {
         renderTo: 'chart',
         defaultSeriesType: 'line',
         marginRight: 30,
         marginBottom: 50
      },
      title: { text: 'Daily access rate for client' },
      subtitle: { text: uri },
      xAxis: {
         categories: days
      },
      yAxis: {
         title: { text: 'Number of requests' },
         plotLines: [{ value: 0, width: 1, color: '#808080' }]
      },
      tooltip: {
         formatter: function() {
           return 'Accesses ' + this.x +'<br/><b>' + this.y + ' times</b>';
         }
      },
      legend: {
         layout: 'vertical',
         align: 'right',
         verticalAlign: 'top',
         x: -10,
         y: 10,
         borderWidth: 0
      },
      series: [{
         name: 'accesses',
         data: times
      }]
   });
};


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oauth2_provider_engine-0.0.2 app/assets/javascripts/oauth2_provider/application.js
oauth2_provider_engine-0.0.1 app/assets/javascripts/oauth2_provider/application.js