       if vars.axes.stacked
         mod = 0
       else if vars[discrete].persist.position.value
+        console.log x.domain(), x.range(), fetchValue(vars, d, vars.id.value)
         mod = x fetchValue(vars, d, vars.id.value)
       else
         mod = x(i % bars)


  if vars[discrete].persist.position.value and not vars.axes.stacked
    ids = uniques d3.merge(nested.map (d) -> d.values), vars.id.value, fetchValue, vars, vars.id.value, false
    x.domain(ids).range(buckets(x.range(), ids.length))

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

      offset   = space/2 - maxSize/2 - padding

      x = d3.scale.ordinal()

      if divisions is 1
        x.domain([0]).range([0])
      else
        x
          .domain [0, divisions-1]
          .range [-offset, offset]

    else
      x = d3.scale.linear()
