Esempio n. 1
0
echo $this->render('rendering/_sidebar');
?>
            <div id="content" class="ninecol last">
                <div class="panel-wrapper">
                    <div class="site-index">

                        

                        <div class="body-content">
                            <?php 
echo $this->render('rendering/_flashmessage');
?>
                            <div class="row">
                              <div class="col-sm-12">
                                <?php 
echo \dosamigos\highcharts\HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'line'], 'title' => ['text' => 'Статистика за месяц'], 'xAxis' => ['categories' => ['1', '2', '3', '4', '5', '6', '7']], 'yAxis' => ['title' => ['text' => 'Посты']], 'series' => [['name' => 'День', 'data' => [112, 212, 412, 123, 123, 321, 213]]]]]);
?>
                              </div>
                            </div>
                            <div class="row top10">
                                <div class="col-sm-12 text-right">
                                    <?php 
echo Html::a('Добавить пост', ['createpost'], ['class' => 'btn btn-default btn-xs']);
?>
                                </div>
                            </div>
                            <div class="row top10">
                                <div class="table-responsive">
                                    <table class="table table-bordered table-striped">
                                      <thead>
                                        <tr>
Esempio n. 2
0
<?php

use backend\widgets\Panel;
use miloschuman\highcharts\Highcharts;
use yii\web\JsExpression;
$data = array();
foreach ($artikelKomentar as $key => $value) {
    $data[] = ['name' => $value['judul'], 'data' => [(int) $value['jum_koment']]];
}
Panel::begin(['title' => "{$this->title}", 'type' => Panel::TYPE_DEFAULT]);
?>


<?php 
echo \dosamigos\highcharts\HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'column'], 'title' => ['text' => 'Komentar Artikel'], 'xAxis' => ['categories' => ['Judul Artikel']], 'yAxis' => ['title' => ['text' => 'Jumlah Komentar']], 'series' => $data]]);
Panel::end();
?>



<?php 
Highcharts::widget(['scripts' => ['modules/exporting', 'themes/grid-light'], 'options' => ['title' => ['text' => 'Combination chart'], 'xAxis' => ['categories' => ['Apples', 'Oranges', 'Pears', 'Bananas', 'Plums']], 'labels' => ['items' => [['html' => 'Total fruit consumption', 'style' => ['left' => '50px', 'top' => '18px', 'color' => new JsExpression('(Highcharts.theme && Highcharts.theme.textColor) || "black"')]]]], 'series' => [['type' => 'column', 'name' => 'Jane', 'data' => [3, 2, 1, 3, 4]], ['type' => 'column', 'name' => 'John', 'data' => [2, 3, 5, 7, 6]], ['type' => 'column', 'name' => 'Joe', 'data' => [4, 3, 3, 9, 0]], ['type' => 'spline', 'name' => 'Average', 'data' => [3, 2.67, 3, 6.33, 3.33], 'marker' => ['lineWidth' => 2, 'lineColor' => new JsExpression('Highcharts.getOptions().colors[3]'), 'fillColor' => 'white']], ['type' => 'pie', 'name' => 'Total consumption', 'data' => [['name' => 'Jane', 'y' => 13, 'color' => new JsExpression('Highcharts.getOptions().colors[0]')], ['name' => 'John', 'y' => 23, 'color' => new JsExpression('Highcharts.getOptions().colors[1]')], ['name' => 'Joe', 'y' => 19, 'color' => new JsExpression('Highcharts.getOptions().colors[2]')]], 'center' => [100, 80], 'size' => 100, 'showInLegend' => false, 'dataLabels' => ['enabled' => false]]]]]);
Esempio n. 3
0
?>

    <?php 
if (!empty($kelas) || !empty($mahasiswa)) {
    ?>


        <div class="row">

            <?php 
    echo HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'column'], 'title' => ['text' => 'Total Izin'], 'xAxis' => ['categories' => array("Total Izin")], 'yAxis' => ['title' => ['text' => 'Total Izin']], 'series' => [['name' => 'Tidak Hadir', 'data' => array($totalIzin[0])], ['name' => 'Keluar Kampus', 'data' => array($totalIzin[1])]]]]);
    ?>


            <?php 
    echo HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'column'], 'title' => ['text' => 'Total Izin Matakuliah'], 'xAxis' => ['categories' => $arrMatakuliah], 'yAxis' => ['title' => ['text' => 'Total Izin']], 'series' => [['name' => 'Teori', 'data' => $totalTeori], ['name' => 'Praktikum', 'data' => $totalPrak], ['name' => 'Lainnya', 'data' => $totalLainnya]]]]);
    ?>
            <?php 
}
?>


    </div>

    <div class="row">
        <?php 
if (isset($kelas)) {
    ?>

            <div class="panel-group" id="accordion">
<div class="panel">

    <div class="panel-body">
        <?php 
echo \dosamigos\highcharts\HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'line', 'height' => 300], 'title' => ['text' => 'Inbound Outbound Calls Today'], 'yAxis' => ['title' => ['text' => 'No of Calls']], 'xAxis' => ['categories' => ['08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00']], 'credits' => ['enabled' => false], 'series' => [['name' => 'Inbound', 'data' => [7, 9, 12, 14, 10, 9, 8, 9, 11, 14, 10, 5]], ['name' => 'Outbound', 'data' => [7, 6, 9, 11, 9, 7, 10, 13, 9, 10, 13, 9]]]]]);
?>
    </div>

</div>
Esempio n. 5
0
$totalTeori = array();
$totalPrak = array();
$totalLainnya = array();
foreach ($arrayObjMatkul as $ObjMatakuliah) {
    $arrMatakuliah[] = $ObjMatakuliah['alias'];
    $arrTotalJam[] = $ObjMatakuliah['jumlah_jam'];
    $totalTeori[] = (int) AitkMatakuliahizin::find()->where(['matakuliah_id' => $ObjMatakuliah['matakuliah_id'], 'sesi' => 'T'])->count();
    $totalPrak[] = (int) AitkMatakuliahizin::find()->where(['matakuliah_id' => $ObjMatakuliah['matakuliah_id'], 'sesi' => 'P'])->count();
    $totalLainnya[] = (int) AitkMatakuliahizin::find()->where(['matakuliah_id' => $ObjMatakuliah['matakuliah_id'], 'sesi' => NULL])->count();
}
?>

        <div class="row">

            <?php 
echo HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'column'], 'title' => ['text' => 'Total Ketidakhadiran Matakuliah/ Semester'], 'xAxis' => ['categories' => $arrMatakuliah], 'yAxis' => ['title' => ['text' => 'Jumlah']], 'series' => [['name' => 'Total Izin Jam Teori', 'data' => $totalTeori], ['name' => 'Total Izin Jam Praktikum', 'data' => $totalPrak], ['name' => 'Total IzinKeseluruhan', 'data' => $totalLainnya]]]]);
?>

        </div>
        <div class="row">
            <div class="panel-group" id="accordion">

                <?php 
$i = 1;
foreach ($arrayObjMatkul as $ObjMatakuliah) {
    ?>
                    <div class="panel panel-info">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" data-parent="#accordion" href="#collapse<?php 
    echo $ObjMatakuliah->kode_matakuliah;
                        Total
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div class="col-md-6">

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Grafik Data Kondisi Motor Jakarta</h3>
            </div>
            <div class="panel-body">
                <?php 
echo highcharts\HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'pie'], 'title' => ['text' => 'Data Kondisi Stok Motor Beijing Jakarta'], 'tooltip' => ['pointFormat' => '{series.name}: <b>{point.percentage:.1f}%</b> - {point.y} Unit'], 'xAxis' => ['name' => ['Siap Jual', 'Sedang disiapkan', 'Rusak']], 'yAxis' => ['title' => ['text' => 'Jumlah']], 'plotOptions' => ['pie' => ['showInLegend' => true]], 'legend' => ['useHTML' => true], 'series' => [['name' => 'Jumlah', 'data' => [['name' => 'Siap Jual', 'y' => $siapjual]]]]]]);
?>

                <ul class="list-group">
                    <li class="list-group-item">
                        <span class="badge" style="background-color: dodgerblue;"><?php 
echo $siapjual;
?>
</span>
                        Siap jual
                    </li>
<!--                    <li class="list-group-item">-->
<!--                        <span class="badge">--><?php 
//= $sedangdisiapkan;
?>
<!--</span>-->
<?php

echo \dosamigos\highcharts\HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'bar'], 'title' => ['text' => 'Fruit Consumption'], 'xAxis' => ['categories' => ['Apples', 'Bananas', 'Oranges']], 'yAxis' => ['title' => ['text' => 'Fruit eaten']], 'series' => [['name' => 'Jane', 'data' => [1, 0, 4]], ['name' => 'John', 'data' => [5, 7, 3]]]]]);
<?php

/**
 * Created by PhpStorm.
 * User: philippfrenzel
 * Date: 10/20/15
 * Time: 2:34 PM
 */
?>

<div class="panel">

    <div class="panel-body">
        <?php 
echo \dosamigos\highcharts\HighCharts::widget(['clientOptions' => ['chart' => ['type' => 'bar', 'height' => 300], 'title' => ['text' => 'User Activity'], 'yAxis' => ['title' => ['text' => 'No of Actions']], 'xAxis' => ['categories' => ['User 1', 'User 4', 'User 7', 'User 2', 'User 12']], 'credits' => ['enabled' => false], 'series' => [['name' => 'User', 'data' => [25, 17, 12, 11, 8]]]]]);
?>
    </div>

</div>