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

        $limit = 6;

        for ($i = 0; $i < $limit; $i++) {
           ?>
            ['<?=$months[$i]?>', <?=$revenuemonth[$i]?><?php if ($showyears) {?>, <?=$revenuemonthlastyear[$i]?><?php } ?>]
            <?php
            if ($i<>$end-1) {
                echo ", ";
            }
        }

        ?>
        ]);

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

        var chart = new google.visualization.LineChart(document.getElementById('chart_div2'));
        chart.draw(data, options);
      }

    </script>

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