+buckets    = require "../../util/buckets.coffee"
 fetchValue = require "../../core/fetch/value.coffee"
 graph      = require "./helpers/graph/draw.coffee"
 nest       = require "./helpers/graph/nest.coffee"

  zero = 0

  maxBars = d3.max nested, (b) -> b.values.length
  for p in nested

    if vars.axes.stacked
      bars = 1

      maxSize /= divisions
      offset   = space/2 - maxSize/2 - padding

      x = d3.scale.ordinal()
        .domain [0, divisions-1]
        .range [-offset, offset]

