<script type="text/javascript">
    var chart1
    $(function () {
        chart1 = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'column'
            },
            title: {
                text: "<?php echo $title_text; ?>"
            },
            xAxis: {
                categories: <?php echo $categories_data; ?>
            },
            yAxis: {
                title: {
                    text: 'จำนวนครั้ง'
                }
            },
            series: <?php echo $series_data; ?>
        });
    });
</script>
<hr/>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>