function relativeBarWidths(){
  var max = _.max(yearTotals);
  $('.bar').each(function(){
    $(this).css({'width': $(this).attr('data-value') / max * 100 + "%"})
  }); //each bar
}
// Each bar should have its width proportional to the relative max
Each bar should have its width proportional to the relative max
Each bar should have its width proportional to the relative max
function relativeBarWidths(){
  var max = _.max(yearTotals);
  $('.bar').each(function(){
    $(this).css({'width': $(this).attr('data-value') / max * 100 + "%"})
  }); 
}
function relativeBarWidths ( ) { var max = _ . max ( yearTotals ) ; $ ( '.bar' ) . each ( function ( ) { $ ( this ) . css ( { 'width' : $ ( this ) . attr ( 'data-value' ) / max * 100 + "%" } ) } ) ; }
Each bar should have its width proportional to the relative max
Each bar should have its width proportional to the relative max
//each bar