@guardian/interactive-component-library 0.1.0-alpha.13 → 0.1.0-alpha.14

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.
@@ -1930,9 +1930,10 @@
1930
1930
  styles2 = mergeStyles(defaultStyles$6, styles2);
1931
1931
  const yScale = d3Scale.scaleLinear([maxValue, minValue], [0, chartHeight]);
1932
1932
  const totalColumnWidth = Number(columnWidth) + Number(columnPadding.left) + Number(columnPadding.right);
1933
+ let marginBottom = minValue < 0 ? 0 : 40;
1933
1934
  return jsxRuntime.jsxs("svg", {
1934
1935
  width: chartWidth,
1935
- height: chartHeight,
1936
+ height: chartHeight + marginBottom,
1936
1937
  children: [columns.map((column, index2) => {
1937
1938
  const getHeight = (input2) => {
1938
1939
  return yScale(0) - yScale(input2);