diff --git a/src/html/js/entries.js b/src/html/js/entries.js
index 0f9c001..6c08452 100644
--- a/src/html/js/entries.js
+++ b/src/html/js/entries.js
@@ -430,6 +430,8 @@ drawChart = function(entries, element) {
rendererOptions:{
}}],
});
+ } else {
+ window.chart = null;
}
};
@@ -461,6 +463,8 @@ drawPieChart = function(entries, element) {
useAxesFormatters:false
}
});
+ } else {
+ window.pieChart = null;
}
};