text: /* general.js
    Name: Sanne Meijering
    Student ID: 10783709
    Functions not directly related to any chart
  */
  
  // Update all graphs (for button clicks)
  function updateAll() {
    renewText("None");
    series = "total";
    updateMain();
    updateCalendar();
    updatePie();
  }
  
  // Renews the series selection text when a series is selected
  function renewText(word) {
    d3.select("#series_text").remove();
    body = d3.select('body');
    body.append('h3')
      .attr('class', 'title space')
      .attr('id', 'series_text')
      .text("Series selected: " + word);
  }
  // Renews the series selection text when a series is selected
  function renewHost(word) {
    d3.select("#site_text").remove();
    body = d3.select('body');
    body.append('h3')
      .attr('class', 'title space')
      .attr('id', 'site_text')
      .text("Site selected: " + word);
  }
  
  // Get the set of values that fit the group when the group variable is changed
  function pickSet() {
    if (group == "rating") {
      set = ["K", "T", "M", "E", "Not Rated"];
    }
    else if (group == "words") {
      set = ["<1K","1K-5K", "5K-10K", "10K-20K", "20K-40K", "40K-60K", "60K-100K", ">100K"];
    }
    else {
      set = ["1", "2-5", "5-10", "10-20", "20-40", "40-60", "60-100", ">100"];
    }
  }
  