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