anchor.diff:    $(function() {
       loadYear(0);
   
  -    $("#chart-selection>li>a").click(function(event) {
  -      event.preventDefault();
  -      var charttype = event.target.dataset.charttype;
  -      yearOverviewChart.transform(charttype);
  -    });
  -
       $("#month-selection>li>a").click(function(event) {
         event.preventDefault();
         var month = event.target.dataset.month;
  
positive.code:     url = yearOverviewUrl;
      if (year != 0) {
        url += "?year=" + year;
      }
      $.getJSON(url, function(data) {
        parseData(data);
  
negative.code:     </div>
      <div class="page-header">
        <h3>
          Spendings in 
          <div class="dropdown" style="display: inline-block">
            <a id="yearspan" class="btn btn-secondary btn-default dropdown-toggle" data-toggle="dropdown" href="#"><%= current_year %><b class="caret"></b></a>
          
            <ul class="dropdown-menu" id="year-selection">
              <% available_years.each do |year| %>
                <li><a data-year=<%= year %> href="#"> <%= year%></a></li>
              <% end %>
            </ul>
          </div>
          : <span id="total"></span> €
        </h3>
      </div>
      <div class="row">
  