diff --git a/src/html/js/entries.js b/src/html/js/entries.js
index 2e20211..1f0b354 100644
--- a/src/html/js/entries.js
+++ b/src/html/js/entries.js
@@ -179,7 +179,9 @@ var ListViewModel = function() {
// Transform to an array readable by jqplot Line renderer.
var chartValues = [];
$.each(entries, function(index, entry) {
- chartValues.push([unwrap(entry.value_date), Number(unwrap(entry.sold))]);
+ if(entry.value_date && unwrap(entry.value_date)) {
+ chartValues.push([unwrap(entry.value_date), Number(unwrap(entry.sold))]);
+ }
});
return chartValues;