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

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

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


    else if vars[discrete].persist.position.value
      bars = divisions
      newSize = maxSize
      unless i
        ids = p.values.map (d) -> fetchValue(vars, d, vars.id.value)
        x.domain(ids).range(buckets(x.range(), ids.length))

    else
      bars = p.values.length
      if vars[discrete].persist.size.value
