Skip to content
Permalink
Browse files
Do not plot empty graphs
  • Loading branch information
RaphaelBergmann committed Mar 2, 2017
1 parent 1346f0d commit 301a2d659722b4e69b30da9f0913b31d4d248900
Showing with 3 additions and 0 deletions.
  1. +3 −0 js/views/details/main.js
@@ -26,6 +26,9 @@ define([
plot: function(g, data, labels, legendPos, colors, tickFormat,
tooltipFormat) {

/* do not plot graph if there is no data */
if (data[0].length==0) return;

/* Initialize graph. */
var margin = {top: 30, right: 10, bottom: 20, left: 60},
width = 550 - margin.left - margin.right,

0 comments on commit 301a2d6

Please sign in to comment.