    <!--   for chart 1 -->
  <script type="text/javascript">
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart()
      {
        var data = google.visualization.arrayToDataTable([
        ['Day', 'Sales (GBP)'<?php if ($showyears) {?>, '1 Year Ago'<?php } ?>],
        <?php

        $day = 86400; //1day in seconds
        $limit = 7;

        for ($i=0; $i<$limit; $i++) {

        ?>
        ['<?=$days[$i]?>', <?=$revenuetoday[$i]?><?php if ($showyears) {?>, <?=$revenuelastyear[$i]?><?php }?>]
        <?php

        if ($i<>$limit-1) {
            echo ", ";
        }

        }

        ?>
        ]);

        var options = {
          title: '',
          vAxis: {title: 'Sales', titleTextStyle: {color: 'black'}},
        };

        var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
        chart.draw(data, options);
      }
    </script>

    <h2>Weekly Performance</h2>
    <div id="chart_div" style="width: 100%; height: 300px"></div>
