anchor.diff:      }
   });
   
  +function check_changed() {
  +  var will_list = get_will_list();
  +  myChart.data.datasets[1].data = will_list;
  +  myChart.update();
  +}
  +
  +function get_will_list() {
  +  var will_list = new Array();
  +  for (var j = 0; j < veg_list.length; j++) {
  +    var vegs = document.querySelectorAll('[data-' + veg_list[j] + ']');
  +    var veg_count = 0;
  +    for (veg of vegs) {
  +      var checkbox = veg.parentNode.parentNode.previousElementSibling.firstElementChild.firstElementChild;
  +      if (checkbox.checked) {
  +        veg_count += parseFloat(veg.dataset[veg_list[j]]);
  +      }
  +    }
  +    will_list.push(veg_count);
  +  }
  +  return will_list;
  +}
   
   </script>
     <!-- /container -->
  
positive.code:   <% @dishes.each do |dish| %>
    <div class="checkbox-inline">
      <div>
        <%= check_box 'dish', '1', {}, true, false %>
          <h3 class="recipe_title"
              style="background-image:url('<%= dish.img_url %>')">
            <a href="http://recipe.rakuten.co.jp/recipe/<%= dish.recipe_id %>/"><%= dish.recipe_title %></a>
  
negative.code: var ctx = document.getElementById("myChart").getContext("2d");
  var ctx = $("#myChart");
  
  var veg_list = new Array();//野菜の英語名
  var label_list = new Array();//野菜の名前（日本語）
  var data_list = new Array();//手持ちの野菜
  
  //手持ちの野菜
  <% @vegetable_stocks.to_a.each do |vegetable_stock| %>
    veg_list.push('<%= vegetable_stock[0] %>')
    label_list.push('<%= vegetable_stock[1] %>');
    data_list.push('<%= vegetable_stock[2] %>');
  <% end %>
  
  //使う予定の野菜
  var will_list = get_will_list();
  
  var myChart = new Chart(ctx, {
      type: 'radar',
      data: {
  