message: bugfix for addTotalValues with negative values
diff: @@ -38,12 +38,13 @@ const addTotalBarValues = function (svg, chart, data, stacked, axisFormat) {
  return true;
  }
  return i === countSeriesDisplayed - 1;
  - }).selectAll('rect.positive');
  + }).selectAll('rect');
  const groupLabels = svg.select('g.nv-barsWrap').append('g');
  rectsToBeLabeled.each(
  function (d, index) {
  const rectObj = d3.select(this);
  + if (rectObj.attr('class').includes('positive')) {
  const transformAttr = rectObj.attr('transform');
  const yPos = parseFloat(rectObj.attr('y'));
  const xPos = parseFloat(rectObj.attr('x'));
  @@ -56,6 +57,7 @@ const addTotalBarValues = function (svg, chart, data, stacked, axisFormat) {
  .attr('class', 'bar-chart-label');
  const labelWidth = t.node().getBBox().width;
  t.attr('x', xPos + rectWidth / 2 - labelWidth / 2); // fine tune
  + }
  });
  };
  