|
@@ -379,9 +379,9 @@ function drawBPChart(data) {
|
|
|
data.forEach(function(d) {
|
|
|
var t = chartDateFormatter(d.recordedDate);
|
|
|
xDatas.push(t);
|
|
|
- y1Datas.push(d.phrValue);
|
|
|
- y2Datas.push(d.phrValue2);
|
|
|
- y3Datas.push(d.phrValueExtra);
|
|
|
+ y1Datas.push(d.phrValue === "" ? Number.NaN : d.phrValue);
|
|
|
+ y2Datas.push(d.phrValue2 === "" ? Number.NaN : d.phrValue2);
|
|
|
+ y3Datas.push(d.phrValueExtra === "" ? Number.NaN : d.phrValueExtra);
|
|
|
});
|
|
|
var ctx = document.getElementById("bloodPressurePulseChart").getContext('2d');
|
|
|
myCharts["bloodPressurePulseChart"] = new Chart(ctx, {
|