comparison client/src/components/fairway/Fairwayprofile.vue @ 3522:320aa3b85152 waterlevel-in-crossprofile

client: fairway profiles: fixed waterlevel axis domain
author Markus Kottlaender <markus@intevation.de>
date Wed, 29 May 2019 13:34:59 +0200
parents 70cd7383325b
children 8a9ee18de13f
comparison
equal deleted inserted replaced
3520:70cd7383325b 3522:320aa3b85152
525 .rangeRound([height, 0]); 525 .rangeRound([height, 0]);
526 526
527 let yScaleLeft = d3 527 let yScaleLeft = d3
528 .scaleLinear() 528 .scaleLinear()
529 .domain([ 529 .domain([
530 this.refWaterlevels.LDC * 1.1, 530 this.refWaterlevels.LDC - this.maxAlt * 100,
531 this.refWaterlevels.LDC - yScaleRight.domain()[1] * 100 531 this.refWaterlevels.LDC + this.maxAlt * 0.1 * 100
532 ]) 532 ])
533 .rangeRound([height, 0]); 533 .rangeRound([height, 0]);
534 534
535 let xAxis = d3.axisBottom(xScale).ticks(5); 535 let xAxis = d3.axisBottom(xScale).ticks(5);
536 let yAxisRight = d3.axisRight(yScaleRight); 536 let yAxisRight = d3.axisRight(yScaleRight);