code: function (d, chart, series) {
              var returnCx = 0;
              if (series.x.measure !== null && series.x.measure !== undefined) {
                  returnCx = series.x._scale(d.cx);
              } else if (series.x._hasCategories() && series.x.categoryFields.length >= 2) {
                  returnCx = series.x._scale(d.cx) + dimple._helpers.xGap(chart, series) + ((d.xOffset + 0.5) * (((chart._widthPixels() / series.x._max) - 2 * dimple._helpers.xGap(chart, series)) * d.width));
              } else {
                  returnCx = series.x._scale(d.cx) + ((chart._widthPixels() / series.x._max) / 2);
              }
              return returnCx;
          }
docs: Calculate the centre x position