fix HR graph scale
This commit is contained in:
parent
b3081773a7
commit
20e4590eea
|
@ -140,7 +140,7 @@ public abstract class BaseSeries<E extends DataPointInterface> implements Series
|
||||||
* @return the highest y value, or 0 if there is no data
|
* @return the highest y value, or 0 if there is no data
|
||||||
*/
|
*/
|
||||||
public double getHighestValueY() {
|
public double getHighestValueY() {
|
||||||
if (mData.isEmpty()) return 0d;
|
if (mData.isEmpty()) return 100d;
|
||||||
double h = mData.get(0).getY();
|
double h = mData.get(0).getY();
|
||||||
for (int i = 1; i < mData.size(); i++) {
|
for (int i = 1; i < mData.size(); i++) {
|
||||||
double c = mData.get(i).getY();
|
double c = mData.get(i).getY();
|
||||||
|
|
Loading…
Reference in a new issue