code: function computeFitCategoryTraits(index, ruler, options) {
  	var thickness = options.barThickness;
  	var count = ruler.stackCount;
  	var curr = ruler.pixels[index];
  	var size, ratio;
  
  	if (helpers.isNullOrUndef(thickness)) {
  		size = ruler.min * options.categoryPercentage;
  		ratio = options.barPercentage;
  	} else {
  		// When bar thickness is enforced, category and bar percentages are ignored.
  		// Note(SB): we could add support for relative bar thickness (e.g. barThickness: '50%')
  		// and deprecate barPercentage since this value is ignored when thickness is absolute.
  		size = thickness * count;
  		ratio = 1;
  	}
  
  	return {
  		chunk: size / count,
  		ratio: ratio,
  		start: curr - (size / 2)
  	};
  }
docs: Computes an "ideal" category based on the absolute bar thickness or, if undefined or null,
  uses the smallest interval (see computeMinSampleSize) that prevents bar overlapping. This
  mode currently always generates bars equally sized (until we introduce scriptable options?).
  @private