anchor.diff:          li(role='presentation')
             a(href='#received', aria-controls='received', role='tab', data-toggle='tab') Received
       .tab-content
  -      #balance.tabpanel.tab-pane.active 
  +      #balance.tabpanel.tab-pane.active
           include ./includes/rl_balance.jade
         #received.tabpanel.tab-pane
           include ./includes/rl_received.jade
  
positive.code: extends layout
  
  block content   
    script.
      $(document).ready(function(){
        var data = [
        ['Top 1-25', !{dista.percent}],['Top 26-50', !{distb.percent}],['Top 51-75', !{distc.percent}],['Top 76-100', !{distd.percent}],['101+', !{diste.percent}]
        ];
        var pieWealthDist = $.jqplot('pieChart', [data],
          {
            seriesColors: [ "#d9534f", "#5cb85c", "#428bca", "#222", "#CCC"],
            series: [{
              // Make this a pie chart.
              renderer: $.jqplot.PieRenderer,
              rendererOptions: {
                diameter: 260,
                padding: 0,
                sliceMargin: 4, 
                // Put data labels on the pie slices.
                // By default, labels show the percentage of the slice.
                showDataLabels: false,
              }
            }],
            grid: {borderWidth:0, shadow:false},
            legend: {
              show: false,
              rendererOptions: {
                  numberRows: 1,
                  border: 'none'
              },
              location: 's'
            }
          }
        );
      });
      $(window).resize(function () { 
        pieWealthDist.replot( { resetAxes: false } );
      });  
    .col-xs-12.col-md-8
      .tabpanel
        ul.nav.nav-tabs(role='tablist')
  
negative.code:             tr
                th
                  span #{settings.locale.total}
                td
                td.text-center #{(100 - parseFloat(distd.percent)).toFixed(2)}
        center
          canvas(id="wealthDonut", width="300", height="300")
    .row.footer-margin
  