Sha256: d7489616413649b01e97405b4db506852637435f932ff70a45871ed8e70dd38c

Contents?: true

Size: 721 Bytes

Versions: 5

Compression:

Stored size: 721 Bytes

Contents

function pageViewsShareByUser(userName) {
    data  = JSON.parse( $('a[data-user="'+ userName +'"]').attr('data-page-visits'));
    donutTip({
        selector:       'div#pageViewsShareByUser',
        data:           data,
        width:          300,
        height:         300,
        margin:         {top: 20, right: 0, bottom: 20, left:40},
        flexRight:      true,
        innerRadius:    60,
        outerRadius:    110,
        color:          d3.scale.category20c(),
        xDomain:        'page',
        yDomain:        'count',
        tipLabel:       '',
        tipValue:       'count',
        tipText:        'Page Views',
        totalLabel:     'Views',
        legend:         false
    });
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
audit_rails-2.0.10 app/assets/javascripts/audit_rails/page-view-user-contribution.js
audit_rails-2.0.9 app/assets/javascripts/audit_rails/page-view-user-contribution.js
audit_rails-2.0.8 app/assets/javascripts/audit_rails/page-view-user-contribution.js
audit_rails-2.0.7 app/assets/javascripts/audit_rails/page-view-user-contribution.js
audit_rails-2.0.6 app/assets/javascripts/audit_rails/page-view-user-contribution.js