# HG changeset patch # User Markus Kottlaender # Date 1562842178 -7200 # Node ID 9440d29220976cbd1482b8f36a7b37ac030da04f # Parent 9ec50fd5c9fa0d547ec1f383f816338d2b64c6f8 client: available fairwaydepth diagram: adjust width of ldc bar, draw 0-tick line as solid line diff -r 9ec50fd5c9fa -r 9440d2922097 client/src/components/fairway/AvailableFairwayDepth.vue --- a/client/src/components/fairway/AvailableFairwayDepth.vue Thu Jul 11 11:35:40 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepth.vue Thu Jul 11 12:49:38 2019 +0200 @@ -503,7 +503,7 @@ fnheight({ name, yScale }) { return d => yScale(0) - yScale(hoursInDays(d[name])); }, - drawLDC({ everyBar, yScale, widthPerItem, spaceBetween }) { + drawLDC({ everyBar, yScale, widthPerItem, spaceBetween, ldcOffset }) { const height = this.fnheight({ name: "ldc", yScale }); everyBar .append("rect") @@ -531,7 +531,7 @@ .attr("y", yScale(0)) .attr("height", height) .attr("x", spaceBetween / 2) - .attr("width", widthPerItem - spaceBetween) + .attr("width", widthPerItem - ldcOffset - spaceBetween) .attr( "transform", d => `translate(0 ${this.paddingTop + -1 * height(d)})` @@ -644,6 +644,7 @@ }) .filter(d => d === 0) .selectAll(".tick line") + .attr("stroke-dasharray", "none") .attr("stroke", "#333"); diagram .append("g")