Mercurial > gemma
changeset 3131:1a1ec4c98c98
client: resolve linter issues
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 29 Apr 2019 18:16:51 +0200 |
parents | 2e36267ab50e |
children | f34277674926 ab00165540fe |
files | client/src/components/fairway/AvailableFairwayDepth.vue |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue Mon Apr 29 18:09:44 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Mon Apr 29 18:16:51 2019 +0200 @@ -60,7 +60,7 @@ }, drawBars({ diagram, data, yScale }) { const paddingRight = 100; - const paddingTop = 30; + const paddingTop = 10; const allBars = diagram .selectAll("g") @@ -68,9 +68,11 @@ .enter() .append("g") .attr("transform", (d, i) => { - return "translate(" + (paddingRight + i * 95) + " 10 )"; + return `translate(${paddingRight + i * 95} ${paddingTop})`; }); - const barPerMonth = allBars + // bars per month + const colors = []; + allBars .selectAll("rect") .data(d => d.values) .enter()