Пример #1
0
                            </div>
                            <div class="col-lg-12">
                                <table class="table table-bordered table-striped table-condensed">
                                    <tbody>
                                        <tr>
                                            <td><h5><?php 
echo $search_date . $cityname;
?>
24小时访问情况:</h5></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <h4>24小时访问情况</h4>
                                                <?php 
//获得访问来源
$pieflat_form = NginxHightchartService::getSplinePlatHightChart($search_date, "DetailType1=:topT", [':topT' => $cityname], 'CheckTime', $table, '访问来源');
if ($pieflat_form) {
    ?>
                                                    <?php 
    echo Highcharts::widget(['options' => ['chart' => ['type' => 'spline', 'plotShadow' => true, 'height' => 450], 'title' => ['text' => '24小时城市访问情况'], 'xAxis' => ['categories' => $pieflat_form['in_country']['categories'], 'title' => array('text' => null)], 'yAxis' => ['min' => 0, 'title' => array('text' => ''), 'align' => 'high', 'labels' => array("overflow" => "justify")], 'credits' => ['enabled' => false], 'plotOptions' => ['spline' => ['allowPointSelect' => true, 'cursor' => 'pointer', 'dataLabels' => ['enabled' => TRUE], 'showInLegend' => true]], 'legend' => ['verticalAlign' => "bottom"], 'series' => [$pieflat_form['in_country']['series']]]]);
}
?>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>