anchor.diff:      return true;
     }
   
  +  function toggleChart(chart_id, replacement_id, chartData) {
  +    if(isDataEmpty(chartData)) {
  +      $(chart_id).hide();
  +      $(replacement_id).show();
  +    }
  +    else {
  +      $(chart_id).show();
  +      $(replacement_id).hide();
  +    }
  +  }
  +
     function selectMonth(month) {
       selectedMonth = month;
       monthlyPerProjectChart.resize({width: 400, height: 300});
       monthlyPerProjectChart.load({json: monthlyPerProject[month], unload: true});
  +    monthlyPerProjectChart.flush();
       $('#month-selection-header').text($('.month-'+month).text());
   
  -    console.log(monthlyPerProject[month]);
  -    if(isDataEmpty(monthlyPerProject[month])) {
  -      $('#mpp').hide();
  -      $('#mpp_no_data').show();
  -    }
  -    else {
  -      $('#mpp').show();
  -      $('#mpp_no_data').hide();
  -    }
  +    toggleChart('#mpp', '#mpp_no_data', monthlyPerProject[month])
     }
   
     function parseData(data) {
  
positive.code:   .c3-event-rect {
      cursor: pointer;
    }
  </style>
negative.code:         init = true;
        }
        updateCharts();
        loadProjectDrilldown(allProjects[0],-1);
      });
    }
  
  