Mercurial > gemma
changeset 3462:9be91acbe49a
afd: offset left instead right. except LDC all bars now have the same width.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 27 May 2019 09:33:05 +0200 |
parents | b43cf476d791 |
children | 6f4dad7473d7 |
files | client/src/components/fairway/AvailableFairwayDepth.vue |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)})`)