src/graphs/bar.js
function() {
    var width = (this.graph_width / this.data_size) - this.bar_padding;

    if (this.grouped) {
      //width = width / this.group_size - (this.bar_padding * this.group_size);
    }

    if (this.options.max_bar_size && width > this.options.max_bar_size) {
      width = this.options.max_bar_size;
      this.bar_padding = this.graph_width / this.data_size;
    }

    return width;
  }
function() {
    var width = (this.graph_width / this.data_size) - this.bar_padding;

    if (this.grouped) {
      //width = width / this.group_size - (this.bar_padding * this.group_size);
    }

    if (this.options.max_bar_size && width > this.options.max_bar_size) {
      width = this.options.max_bar_size;
      this.bar_padding = this.graph_width / this.data_size;
    }

    return width;
  }
function ( ) { var width = ( this . graph_width / this . data_size ) - this . bar_padding ; if ( this . grouped ) { //width = width / this.group_size - (this.bar_padding * this.group_size); } if ( this . options . max_bar_size && width > this . options . max_bar_size ) { width = this . options . max_bar_size ; this . bar_padding = this . graph_width / this . data_size ; } return width ; }
Calculates the width of each bar.

@returns {Integer} The bar width
Calculates the width of each bar .