diff --git a/templates/flowspy/route_details.html b/templates/flowspy/route_details.html
index e3cb299954e40f789266c110f9cf9ab51df9233b..fd0cd6f188699f748b4c3a4f5b0c60a218cf9e84 100644
--- a/templates/flowspy/route_details.html
+++ b/templates/flowspy/route_details.html
@@ -252,8 +252,12 @@ function plotGraph(data)
 $(document).ready(function() {
    var statsurl = "{% url routestats route.name %}";
    $.get(statsurl).done(function(data) {
-      $("#traffic-plot-loading").hide();
-      plotGraph(data);
+      if (data["error"]) {
+          $("#traffic-plot-loading").text("No data, try later");
+      } else {
+          $("#traffic-plot-loading").hide();
+          plotGraph(data);
+      }
    });
 });
 </script>