From a2460aecd330a0837c4fda76731e5361e2a0f8c0 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Thu, 8 Apr 2021 12:03:59 -0400 Subject: [PATCH] use xAxisPadding to remove clipping on bars fixes #1827 --- web-src/examples/composite-bar-line.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-src/examples/composite-bar-line.html b/web-src/examples/composite-bar-line.html index cd90982349..f549435210 100644 --- a/web-src/examples/composite-bar-line.html +++ b/web-src/examples/composite-bar-line.html @@ -44,7 +44,7 @@ composite .width(768) .height(480) - .x(d3.scaleLinear().domain([2.9,16.1])) + .x(d3.scaleLinear()).xAxisPadding(0.5).elasticX(true) .yAxisLabel("The Y Axis") .legend(dc.legend().x(80).y(20).itemHeight(13).gap(5)) .renderHorizontalGridLines(true)