
<div class="content_wrapper">
    	<div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>安卓实时登陆（北京时区）</header>
                    <section>
                        <div class="container-fluid">
                            <div class="row">
                                <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
		<div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>IOS实时登陆（北京时区）</header>
                    <section>
                        <div class="container-fluid">
                            <div class="row">
                                <div id="container2" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>安卓实时登陆（服务器时区）</header>
                    <section>
                        <div class="container-fluid">
                            <div class="row">
                                <div id="container3" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
		<div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>IOS实时登陆（服务器时区）</header>
                    <section>
                        <div class="container-fluid">
                            <div class="row">
                                <div id="container4" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
                            </div>
                        </div>
                    </section>
                </aside>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript" src="<?php echo base_url();?>public/js/highcharts/highcharts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>public/js/highcharts/modules/exporting.js"></script>
<script type="text/javascript">
Highcharts.chart('container', {
    title: {
        text: '安卓实时登陆（北京时区）'
    },

    subtitle: {
        text: ''
    },
    xAxis: {
        categories: [<?php
                foreach($dayList as $date){
                    echo "'".date("H:i",strtotime(date("Ymd")." ".$date)+3600*8)."',";
                }
            ?>]
    },
    yAxis: {
        title: {
            text: '人数'
        }
    },
    series: [{
        color: '#00ff00',
        name: '登陆玩家',
        data: [<?php echo implode(',', $list[0][1]);?>]
    },{
        color: '#3333ff',
        name: '昨日登陆玩家',
        data: [<?php echo implode(',', $list[1][1]);?>]
    },{
        color: '#666',
        name: '上周登陆玩家',
        data: [<?php echo implode(',', $list[2][1]);?>]
    },{
        name: '上月登陆玩家',
        data: [<?php echo implode(',', $list[3][1]);?>]
    }],
    responsive: {
        rules: [{
            condition: {
                maxWidth: 500
            },
            chartOptions: {
                legend: {
                    layout: 'horizontal',
                    align: 'center',
                    verticalAlign: 'bottom'
                }
            }
        }]
    }

});

Highcharts.chart('container2', {
    title: {
        text: 'IOS实时登陆（北京时区）'
    },
    subtitle: {
        text: ''
    },
    xAxis: {
        categories: [<?php
            foreach($dayList as $date){
                echo "'".date("H:i",strtotime(date("Ymd")." ".$date)+3600*8)."',";
            }
            ?>]
    },
    yAxis: {
        title: {
            text: '人数'
        }
    },
    series: [{
        color: '#00ff00',
        name: '登陆玩家',
        data: [<?php echo implode(',', $list[0][2]);?>]
    },{
        color: '#3333ff',
        name: '昨日登陆玩家',
        data: [<?php echo implode(',', $list[1][2]);?>]
    },{
        color: '#666',
        name: '上周登陆玩家',
        data: [<?php echo implode(',', $list[2][2]);?>]
    },{
        name: '上月登陆玩家',
        data: [<?php echo implode(',', $list[3][2]);?>]
    }],
    responsive: {
        rules: [{
            condition: {
                maxWidth: 500
            },
            chartOptions: {
                legend: {
                    layout: 'horizontal',
                    align: 'center',
                    verticalAlign: 'bottom'
                }
            }
        }]
    }
});
Highcharts.chart('container3', {
    title: {
        text: '安卓实时登陆（服务器时区）'
    },
    subtitle: {
        text: ''
    },
    xAxis: {
        categories: [<?php
                foreach($dayList as $date){
                    echo "'".date("H:i",strtotime(date("Ymd")." ".$date))."',";
                }
            ?>]
    },
    yAxis: {
        title: {
            text: '人数'
        }
    },
    series: [{
        color: '#00ff00',
        name: '登陆玩家',
        data: [<?php echo implode(',', $list[0][1]);?>]
    },{
        color: '#3333ff',
        name: '昨日登陆玩家',
        data: [<?php echo implode(',', $list[1][1]);?>]
    },{
        color: '#666',
        name: '上周登陆玩家',
        data: [<?php echo implode(',', $list[2][1]);?>]
    },{
        //color: '#666',
        name: '上月登陆玩家',
        data: [<?php echo implode(',', $list[3][1]);?>]
    }],
    responsive: {
        rules: [{
            condition: {
                maxWidth: 500
            },
            chartOptions: {
                legend: {
                    layout: 'horizontal',
                    align: 'center',
                    verticalAlign: 'bottom'
                }
            }
        }]
    }

});

Highcharts.chart('container4', {
    title: {
        text: 'IOS实时登陆（服务器时区）'
    },
    subtitle: {
        text: ''
    },
    xAxis: {
        categories: [<?php
            foreach($dayList as $date){
                echo "'".date("H:i",strtotime(date("Ymd")." ".$date))."',";
            }
            ?>]
    },
    yAxis: {
        title: {
            text: '人数'
        }
    },
    series: [{
        color: '#00ff00',
        name: '登陆玩家',
        data: [<?php echo implode(',', $list[0][2]);?>]
    },{
        color: '#3333ff',
        name: '昨日登陆玩家',
        data: [<?php echo implode(',', $list[1][2]);?>]
    },{
        color: '#666',
        name: '上周登陆玩家',
        data: [<?php echo implode(',', $list[2][2]);?>]
    },{
        name: '上月登陆玩家',
        data: [<?php echo implode(',', $list[3][2]);?>]
    }],
    responsive: {
        rules: [{
            condition: {
                maxWidth: 500
            },
            chartOptions: {
                legend: {
                    layout: 'horizontal',
                    align: 'center',
                    verticalAlign: 'bottom'
                }
            }
        }]
    }
});



</script>
