Fixes lines
This commit is contained in:
parent
773e77534d
commit
dd1c6435b4
|
@ -332,7 +332,6 @@ export class CdfChartD3 {
|
||||||
addLollipopsChart(distributionChart) {
|
addLollipopsChart(distributionChart) {
|
||||||
const data = this.getDataPoints('discrete');
|
const data = this.getDataPoints('discrete');
|
||||||
const ys = data.map(item => item.y);
|
const ys = data.map(item => item.y);
|
||||||
const yMin = d3.min(ys);
|
|
||||||
const yMax = d3.max(ys);
|
const yMax = d3.max(ys);
|
||||||
|
|
||||||
// X axis
|
// X axis
|
||||||
|
@ -343,7 +342,7 @@ export class CdfChartD3 {
|
||||||
|
|
||||||
// Y axis
|
// Y axis
|
||||||
const yScale = d3.scaleLinear()
|
const yScale = d3.scaleLinear()
|
||||||
.domain([yMin, yMax])
|
.domain([0, yMax])
|
||||||
.range([this.calc.chartHeight, 0]);
|
.range([this.calc.chartHeight, 0]);
|
||||||
|
|
||||||
this.chart.append("g")
|
this.chart.append("g")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user