code: function (d, chart, series) {
              var returnX = 0;
              if (series.x._hasTimeField()) {
                  returnX = series.x._scale(d.x) - (dimple._helpers.width(d, chart, series) / 2);
              } else if (series.x.measure !== null && series.x.measure !== undefined) {
                  returnX = series.x._scale(d.x);
              } else {
                  returnX = series.x._scale(d.x) + dimple._helpers.xGap(chart, series) + (d.xOffset * (dimple._helpers.width(d, chart, series) + 2 * dimple._helpers.xClusterGap(d, chart, series))) + dimple._helpers.xClusterGap(d, chart, series);
              }
              return returnX;
          }
docs: Calculate the top left x position for bar type charts