code: function (d, chart, series) {
              var returnWidth = 0;
              if (series.x.measure !== null && series.x.measure !== undefined) {
                  returnWidth = Math.abs(series.x._scale((d.x < 0 ? d.x - d.width : d.x + d.width)) - series.x._scale(d.x));
              } else if (series.x._hasTimeField()) {
                  returnWidth = series.x.floatingBarWidth;
              } else {
                  returnWidth = d.width * ((chart._widthPixels() / series.x._max) - (dimple._helpers.xGap(chart, series) * 2)) - (dimple._helpers.xClusterGap(d, chart, series) * 2);
              }
              return returnWidth;
          }
docs: Calculate the width for bar type charts