Making the lines of code chart hide if no data available. Closes #1103

This commit is contained in:
Dan Cryer 2015-11-03 11:51:45 +00:00
parent c95e226496
commit 7b345cbc49

View file

@ -89,7 +89,7 @@ var locPlugin = ActiveBuild.UiPlugin.extend({
drawChart: function () {
var self = this;
if ($('#information').hasClass('active') && self.chartData) {
if ($('#information').hasClass('active') && self.chartData && self.lastData) {
$('#build-lines-chart').show();
var ctx = $("#phploc-lines-chart").get(0).getContext("2d");