Changes binary operation

This commit is contained in:
Roman Galochkin 2020-02-21 08:05:41 +03:00
parent 2e1287e746
commit f131b60759

View File

@ -179,8 +179,8 @@ export class CdfChartD3 {
const dataPoints = [this.getDataPoints('continuous')]; const dataPoints = [this.getDataPoints('continuous')];
// Boundaries. // Boundaries.
const xMin = this.attrs.minX || d3.min(this.attrs.data.continuous.xs) | d3.min(this.attrs.data.discrete.xs); const xMin = this.attrs.minX || d3.min(this.attrs.data.continuous.xs) || d3.min(this.attrs.data.discrete.xs);
const xMax = this.attrs.maxX || d3.max(this.attrs.data.continuous.xs) | d3.max(this.attrs.data.discrete.xs); const xMax = this.attrs.maxX || d3.max(this.attrs.data.continuous.xs) || d3.max(this.attrs.data.discrete.xs);
const yMin = d3.min(this.attrs.data.continuous.ys); const yMin = d3.min(this.attrs.data.continuous.ys);
const yMax = d3.max(this.attrs.data.continuous.ys); const yMax = d3.max(this.attrs.data.continuous.ys);