Make yMin=0 for discrete point y-axis on d3 chart

This commit is contained in:
Sebastian Kosch 2020-06-09 21:58:48 -07:00
parent fa1bf75acc
commit bc271a090b

View File

@ -427,7 +427,7 @@ export class DistPlotD3 {
addLollipopsChart(common) { addLollipopsChart(common) {
const data = this.getDataPoints('discrete'); const data = this.getDataPoints('discrete');
const yMin = d3.min(this.attrs.data.discrete.ys); const yMin = 0.; //d3.min(this.attrs.data.discrete.ys);
const yMax = d3.max(this.attrs.data.discrete.ys); const yMax = d3.max(this.attrs.data.discrete.ys);
// X axis. // X axis.