@evergis/charts 3.0.25 → 3.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2669,15 +2669,16 @@ const resizeBarWidth = _ref => {
2669
2669
  return barWidth;
2670
2670
  };
2671
2671
 
2672
+ const MIN_BAR_HEIGHT = 2;
2672
2673
  const getBars = _ref => {
2673
2674
  let {
2674
2675
  groups,
2675
2676
  barWidth
2676
2677
  } = _ref;
2677
- return groups.selectAll('rect').data(item => item).join('rect').attr('x', item => item.x).attr('y', item => item.y).attr('width', barWidth).attr('height', item => item.height).style('fill', item => item.color);
2678
+ return groups.selectAll('rect').data(item => item).join('rect').attr('x', item => item.x).attr('y', item => item.y).attr('width', barWidth).attr('height', item => item.value === null ? 0 : Math.max(item.height, MIN_BAR_HEIGHT)).style('fill', item => item.color);
2678
2679
  };
2679
2680
 
2680
- const MIN_BAR_HEIGHT = 2;
2681
+ const MIN_BAR_HEIGHT$1 = 2;
2681
2682
  const draw$4 = (node, props) => {
2682
2683
  const {
2683
2684
  data,
@@ -2825,7 +2826,7 @@ const draw$4 = (node, props) => {
2825
2826
  });
2826
2827
  xAxis.attr('transform', "translate(0, " + (yScale(yTicks[0]) + (xAxisPadding || 0)) + ")");
2827
2828
  const maskId = "height-limit-mask-" + lodash.uniqueId();
2828
- svg.append('defs').append('mask').attr('id', maskId).append('rect').attr('width', '100%').attr('height', height - marginBottom + MIN_BAR_HEIGHT).attr('fill', 'white');
2829
+ svg.append('defs').append('mask').attr('id', maskId).append('rect').attr('width', '100%').attr('height', height - marginBottom + MIN_BAR_HEIGHT$1).attr('fill', 'white');
2829
2830
  const gSvg = svg.append('g').attr('class', barChartClassNames.barChartBarGlobal).attr('mask', "url(#" + maskId + ")");
2830
2831
  const groups = gSvg.selectAll('g').data(marshalledData).enter().append('g').attr('transform', (_, i) => "translate(" + Math.round(xScale(i)) + "," + -(marginTop || 0) + ")");
2831
2832
  const bars = drawBars ? drawBars({