node-jsgraph
Advanced tools
Comparing version 2.4.10 to 2.4.11
{ | ||
"name": "node-jsgraph", | ||
"description": "library that can be used to render scientific data in the form of graphs and charts", | ||
"version": "2.4.10", | ||
"version": "2.4.11", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "npx webpack", |
@@ -175,3 +175,10 @@ import { SerieInterface, SERIE_TYPE } from '../../types/series'; | ||
if (this.getXAxis()) { | ||
this._calculateHistogram(this.waveform.getMinY(), this.waveform.getMaxY(), (this.waveform.getMaxY() - this.waveform.getMinY()) / 20); | ||
let maxY = this.waveform.getMaxY(), minY = this.waveform.getMinY(); | ||
if (maxY == minY) { | ||
return; | ||
} | ||
this._calculateHistogram(minY, maxY, (maxY - minY)); | ||
} | ||
@@ -178,0 +185,0 @@ } |
Sorry, the diff of this file is too big to display
13715653
123622