# HG changeset patch # User Thomas Junk # Date 1558942385 -7200 # Node ID 9be91acbe49a3e2ef82a470354e8b19754c3f590 # Parent b43cf476d7913e314e634d2fbe2d9e1b076596b7 afd: offset left instead right. except LDC all bars now have the same width. diff -r b43cf476d791 -r 9be91acbe49a client/src/components/fairway/AvailableFairwayDepth.vue --- a/client/src/components/fairway/AvailableFairwayDepth.vue Sun May 26 16:33:02 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Mon May 27 09:33:05 2019 +0200 @@ -522,7 +522,8 @@ .attr("height", d => { return this.yScale(0) - this.yScale(hoursInDays(d.height)); }) - .attr("width", this.barsWidth) + .attr("x", 5) + .attr("width", this.barsWidth - 5) .attr("fill", (d, i) => { return this.$options.COLORS.REST[i]; }); @@ -590,6 +591,7 @@ //dy gives offset of svg on page }) .attr("y", this.yScale(0)) + .attr("x", 5) .attr("height", height) .attr("width", this.barsWidth - 5) .attr("transform", d => `translate(0 ${-1 * height(d)})`)