• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP highcharts\Highcharts类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中miloschuman\highcharts\Highcharts的典型用法代码示例。如果您正苦于以下问题:PHP Highcharts类的具体用法?PHP Highcharts怎么用?PHP Highcharts使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Highcharts类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1:

        <?php ActiveForm::end(); ?>

    </div>

<?php
if (isset($modelRelatorio->idrelatorio) && count($valoresContasAReceber) > 0) {
    HighchartsAsset::register($this)->withScripts(['highstock', 'modules/exporting', 'modules/drilldown']);
    echo Highcharts::widget([

        'options' => [
            'chart' => [
                'type' => 'column'],
            'title' => ['text' => 'Valores recebidos  de <b>' .
                $modelRelatorio->formatarDataDiaMesAno($modelRelatorio->inicio_intervalo) . ' até ' .
                $modelRelatorio->formatarDataDiaMesAno($modelRelatorio->fim_intervalo)],
            'xAxis' => [
                'categories' => ['Data']
            ],
            'yAxis' => [
                'title' => ['text' => 'Valor(R$)']
            ],
            'credits' => false,
            'series' => $valoresContasAReceber
        ]
    ]);
} else {
    ?>
    <div class="alert alert-warning">
        <strong>Informação!</strong> Não há registros de Contas a Receber.
    </div>
    <?php
}
开发者ID:aryangomes,项目名称:applanchonete,代码行数:32,代码来源:relatoriocontasareceber.php


示例2:

            data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
        }, {
            name: 'London',
            data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
        }]
    });
    }); </script></div>
    
    <!-- http://stackoverflow.com/questions/10817783/using-yii-with-dynamic-data-and-highcharts -->
    <!-- https://github.com/miloschuman/yii2-highcharts -->
    <?php 
echo Highcharts::widget(['options' => ['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 
echo Highcharts::widget(['options' => ['title' => ['text' => 'Attendance'], 'xAxis' => ['categories' => ['Present', 'Absent']], 'yAxis' => ['title' => ['text' => 'Number']], 'series' => [['name' => 'Jane', 'data' => [1, 0]], ['name' => 'John', 'data' => [5, 7]]]]]);
?>
    
    <!-- http://www.highcharts.com/demo/pie-basic 
    "encode data with json_ecode and use in that in plugin?" to get data into pie chart?
    http://www.yiiframework.com/forum/index.php/topic/24743-providing-query-data-to-highchart/-->
   <div> <script language ="javascript">$(function () {
    $('#container').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false,
            type: 'pie'
        },
        title: {
            text: 'Attendance'
开发者ID:oma378501,项目名称:attendance,代码行数:31,代码来源:compare.php


示例3: function

<a href="#" id="btn_sql">ชุดคำสั่ง</a>
<div id="sql" style="display: none"><?php 
echo $sql;
?>
</div>


<div class="col-md-12">
        <div class="panel panel-warning">
            <div class="panel-heading">
                <h3 class="panel-title"><i class="glyphicon glyphicon-signal"></i> ผู้ป่วยความดันที่ควบคุมความดันได้ดี</h3>
            </div>
            <div class="panel-body">
<?php 
//print_r($persent1);
echo Highcharts::widget(['options' => ['chart' => ['type' => 'column'], 'title' => ['text' => 'ผู้ป่วยความดันที่ควบคุมความดันได้ดี'], 'xAxis' => ['categories' => $hospname], 'yAxis' => ['title' => ['text' => 'จำนวน(ร้อยละ)']], 'series' => [['name' => 'ร้อยละ', 'data' => $persent1]]]]);
?>
            </div>
        </div>
</div>

<?php 
if (isset($dataProvider)) {
    $dev = \yii\helpers\Html::a('DHDC', 'https://www.facebook.com/jub.wifi', ['target' => '_blank']);
}
//echo yii\grid\GridView::widget([
echo \kartik\grid\GridView::widget(['dataProvider' => $dataProvider, 'responsive' => TRUE, 'hover' => true, 'floatHeader' => true, 'panel' => ['before' => '', 'type' => \kartik\grid\GridView::TYPE_SUCCESS, 'after' => 'โดย ' . $dev], 'columns' => ['hospcode', 'hospname', ['attribute' => 'target', 'header' => 'ผู้ป่วยความดัน(คน)'], ['attribute' => 'result', 'header' => 'ผู้ป่วยความดันที่ควบคุมความดันได้ดี(คน)'], ['class' => '\\kartik\\grid\\FormulaColumn', 'header' => 'ร้อยละ', 'value' => function ($model, $key, $index, $widget) {
    $p = compact('model', 'key', 'index');
    // เขียนสูตร
    $target = $widget->col(2, $p);
    if ($target > 0) {
开发者ID:hdushku,项目名称:dhdc,代码行数:31,代码来源:report10.php


示例4: JsExpression

<?php

use miloschuman\highcharts\Highcharts;
use yii\web\JsExpression;
use yii\helpers\Url;
?>

<?php 
$this->registerJs('$.getJSON("' . URL::to(['stat/top-links']) . '", topLink);');
echo Highcharts::widget(['callback' => 'topLink', 'options' => ['chart' => ['type' => 'column'], 'title' => ['text' => Yii::t('app', 'STAT_TOP_LINK')], 'xAxis' => ['type' => 'category', 'labels' => ['rotation' => -45]], 'yAxis' => ['min' => 0, 'title' => ['text' => Yii::t('app', 'STAT_LINK_CLICKING')]], 'legend' => ['enabled' => false], 'plotOptions' => ['series' => ['borderWidth' => '0', 'dataLabels' => ['enabled' => 'true']]], 'series' => [['name' => Yii::t('app', 'STAT_COUNT'), 'colorByPoint' => true, 'data' => new JsExpression('data')]]]]);
开发者ID:anmaslov,项目名称:start-page,代码行数:10,代码来源:_toplink.php


示例5:

 ><?php 
        echo $value;
        ?>
</option>
                                <?php 
    }
    ?>
                            </select>
                        </div>
                        <div class="btn-group pull-right" role="group" aria-label="First group">
                            <!--                            <a href="/errors/tracereport.html" class="btn btn-default">返回</a>-->
                        </div>
                    </div>
                    <div class="qys_total_show">
                        <?php 
    echo Highcharts::widget(['options' => ['chart' => ['type' => 'bar', 'height' => 2800], 'title' => ['text' => $this->title], 'subtitle' => ['text' => ''], 'xAxis' => ['categories' => $category, 'title' => ['text' => '']], 'yAxis' => ['min' => 0, 'title' => ['text' => 'Population (millions)', 'align' => 'high'], 'align' => 'high', 'labels' => ['overflow' => 'justify']], 'tooltip' => ['valueSuffix' => ''], 'plotOptions' => ['bar' => ['dataLabels' => ['enabled' => true]]], 'legend' => ['layout' => 'horizontal', 'align' => 'center', 'verticalAlign' => 'top', 'floating' => true, 'y' => 20, 'borderWidth' => 1, 'backgroundColor' => '#FFFFFF', 'shadow' => true], 'credits' => ['enabled' => false], 'series' => $trace_series]]);
    ?>
                    </div>
                <?php 
}
?>
            </div>
        </div>
    </div>

</div>
<?php 
Pjax::end();
?>

开发者ID:bfyang5130,项目名称:tuanlogs,代码行数:29,代码来源:tracereport.php


示例6:

                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="col-lg-12">
                                <table class="table table-bordered table-striped table-condensed">
                                    <tbody>
                                        <tr>
                                            <td><h5>CPU负载信息:</h5></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <h4>CPU负载信息</h4>
                                                <?php 
    echo Highcharts::widget(['options' => ['chart' => ['type' => 'spline', 'plotShadow' => true, 'height' => 350], 'title' => ['text' => 'CPU负载信息(%)'], 'xAxis' => ['categories' => $serverstatus['in_country']['categories']], 'yAxis' => ['min' => 0, 'stackLabels' => ['enabled' => true]], 'credits' => ['enabled' => false], 'plotOptions' => ['spline' => ['dataLabels' => ['enabled' => true, 'color' => 'black']]], 'legend' => ['verticalAlign' => "top", 'floating' => true, 'y' => 20], 'series' => $serverstatus['in_country']['cpu']['series']]]);
} else {
    echo '这一天没有对应的数据';
}
?>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
开发者ID:bfyang5130,项目名称:tuanlogs,代码行数:31,代码来源:servicestatus.php


示例7:

                    <?php 
echo yii\jui\DatePicker::widget(['name' => 'endDate', 'language' => 'es-UY', 'dateFormat' => 'dd-MM-yyyy', 'options' => ['placeholder' => 'End Date ...']]);
?>
                
              </td>
              <td> &nbsp;&nbsp;&nbsp; </td>
              <td>
                    <select id="store-picker" name="storePicker" class="btn btn-sm dropdown-toggle">
                      <option value="0" selected>Choose Store...</option>
                      <?php 
echo $stores;
?>
                    </select>
                </td>
                <td> &nbsp;&nbsp;&nbsp; </td>
                <td>
                    <input class="btn btn-default btn-primary btn-sm" type='submit' value='Generate'/>
                </td>

        </tr>
    </table>
    <br>
 <?php 
$comercio = $nomstor;
/*$desde='2015-11-24';
$hasta='2015-11-26';*/
echo Highcharts::widget(['options' => ['title' => ['text' => 'Products ordered by the shop ' . $comercio . ' from: ' . $datei . ' to: ' . $datef], 'xAxis' => ['categories' => $prods], 'yAxis' => ['title' => ['text' => 'Order amount']], 'series' => [['type' => 'column', 'name' => 'Amount', 'data' => $pedi, 'dataLabels' => ['enabled' => true, 'rotation' => -90, 'color' => '#FFFFFF', 'align' => 'right', 'y' => 10], 'color' => 'green']]]]);
?>
</form>
</div>
开发者ID:no7kpo,项目名称:denm,代码行数:30,代码来源:index.php


示例8: YemeklerKaloriController

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Create Kalori Table', ['create'], ['class' => 'btn btn-success']);
?>
    </p>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', 'userid', 'YemekName', 'meal', 'Tarih', ['class' => 'yii\\grid\\ActionColumn']]]);
?>
    <?php 
$id = 0;
$module = 0;
$config = 0;
$name = Yii::$app->user->identity->username;
$sinif = new YemeklerKaloriController($id, $module, $config = []);
$sabah = (int) $sinif->actionSabah();
$ogle = (int) $sinif->actionOgle();
$aksam = (int) $sinif->actionAksam();
echo Highcharts::widget(['options' => ['title' => ['text' => 'Günlük Alınan Kalori Grafiği'], 'xAxis' => ['categories' => ['Sabah', 'Öğle', 'Akşam']], 'yAxis' => ['title' => ['text' => 'Kalori Miktarı']], 'series' => [['name' => $name, 'data' => [$sabah, $ogle, $aksam]]]]]);
?>
    
</div>
开发者ID:farukkkaradeniz,项目名称:kalorimetre,代码行数:29,代码来源:index.php


示例9:

?>
<div class="row">
        <div class="col-sm-3">
            <?php 
echo $this->render('_menu');
?>
        </div>
        <div class="col-xs-12 col-sm-6 col-md-9">
        <h2>
          <span><?php 
echo $this->title;
?>
</span>
        </h2>
        <hr/>
            <div class="row">
            <div class="container-fluid">
                <div class="panel panel-default">
                <div class="panel-heading"><strong><?php 
echo Yii::t('app', 'Monthly Comparative Revenue x Expense');
?>
</strong></div>
                <div class="panel-body">
                <?php 
echo Highcharts::widget(['options' => ['credits' => ['enabled' => false], 'title' => ['text' => ''], 'colors' => ['#18bc9c', '#e74c3c'], 'xAxis' => ['categories' => $m], 'yAxis' => ['title' => ['text' => '']], 'series' => [['type' => 'column', 'name' => Yii::t('app', 'Revenue'), 'data' => $v1], ['type' => 'column', 'name' => Yii::t('app', 'Expense'), 'data' => $v2]]]]);
?>
</div></div>
            </div>
            </div>
            </div>
        </div>
开发者ID:profas-id,项目名称:economizzer,代码行数:31,代码来源:performance.php


示例10: function

//Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default'])
?>
    <?php 
ActiveForm::end();
?>
    </div>
    <div>
	<?php 
if (!empty($dataProvider)) {
    $toolbar = ['{export}'];
    $lbl2 = ' (' . Yii::$app->formatter->asDate($model->fecdesde) . '-' . Yii::$app->formatter->asDate($model->fechasta) . ')';
    $pdfHeader = ['L' => ['content' => \Yii::$app->params['lblName']], 'C' => ['content' => $this->title . $lbl2, 'font-style' => 'B'], 'R' => ['content' => '']];
    $pdfFooter = ['L' => ['content' => \Yii::$app->params['lblName2']], 'C' => ['content' => 'página {PAGENO} de {nb}'], 'R' => ['content' => 'Fecha:{DATE d/m/Y}']];
    echo '<br/>';
    echo GridView::widget(['dataProvider' => $dataProvider, 'options' => ['id' => 'gridStats'], 'condensed' => true, 'showPageSummary' => true, 'layout' => '{toolbar}{items}{pager}', 'export' => ['label' => 'Exportar', 'fontAwesome' => true, 'showConfirmAlert' => true, 'target' => GridView::TARGET_BLANK], 'toolbar' => $toolbar, 'exportConfig' => [GridView::PDF => ['filename' => $this->title, 'config' => ['destination' => 'D', 'methods' => ['SetHeader' => [['odd' => $pdfHeader, 'even' => $pdfHeader]], 'SetFooter' => [['odd' => $pdfFooter, 'even' => $pdfFooter]]], 'options' => ['title' => $this->title, 'subject' => '', 'keywords' => ''], 'contentBefore' => '', 'contentAfter' => '']], GridView::EXCEL => ['filename' => $this->title, 'config' => ['worksheet' => $this->title, 'cssFile' => '']], GridView::CSV => ['filename' => $this->title, 'config' => ['colDelimiter' => ";", 'rowDelimiter' => "\r\n"]]], 'columns' => [['attribute' => 'desc_dia', 'group' => true, 'groupFooter' => function ($model, $key, $index, $widget) {
        return ['mergeColumns' => [[0, 1]], 'content' => [0 => 'Subtotal (' . $model['desc_dia'] . ')', 2 => GridView::F_SUM, 3 => GridView::F_SUM], 'contentFormats' => [2 => ['format' => 'number', 'decimals' => 0], 3 => ['format' => 'number', 'decimals' => 2, 'decPoint' => ',', 'thousandSep' => '.']], 'contentOptions' => [0 => ['style' => 'font-variant:small-caps;text-align:right'], 2 => ['style' => 'text-align:right'], 3 => ['style' => 'text-align:right']], 'options' => ['class' => 'danger', 'style' => 'font-weight:bold;']];
    }], 'concepto', ['attribute' => 'cant', 'hAlign' => 'right', 'pageSummary' => true], ['attribute' => 'porc', 'hAlign' => 'right', 'pageSummary' => true]]]);
    echo '<div>';
    echo Highcharts::widget(['scripts' => ['modules/exporting'], 'options' => ['title' => ['text' => 'Estadistica de accesos (cantidades por Concepto)'], 'xAxis' => ['categories' => $categ], 'yAxis' => ['title' => ['text' => 'Accesos']], 'series' => $series, 'lang' => ['printChart' => 'Imprimir gráfico', 'downloadPNG' => 'Descargar imagen PNG', 'downloadJPEG' => 'Descargar imagen JPEG', 'downloadPDF' => 'Descargar documento PDF', 'downloadSVG' => 'Descargar imagen vectorial SVG', 'contextButtonTitle' => 'Acciones']]]);
    echo '</div><div>';
    echo Highcharts::widget(['scripts' => ['modules/exporting'], 'options' => ['plotOptions' => ['pie' => ['cursor' => 'pointer']], 'title' => ['text' => 'Estadistica de accesos (% por dia)'], 'series' => [$pie], 'lang' => ['printChart' => 'Imprimir gráfico', 'downloadPNG' => 'Descargar imagen PNG', 'downloadJPEG' => 'Descargar imagen JPEG', 'downloadPDF' => 'Descargar documento PDF', 'downloadSVG' => 'Descargar imagen vectorial SVG', 'contextButtonTitle' => 'Acciones']]]);
    echo '</div>';
}
?>
	</div>




</div>
开发者ID:ibergonzi,项目名称:country,代码行数:30,代码来源:stats.php


示例11:

<?php

use miloschuman\highcharts\Highcharts;
?>
<div class="abc">
    <?php 
echo Highcharts::widget(['options' => ['chart' => ['type' => 'pie', 'plotShadow' => true, 'renderTo' => 'abc', 'height' => 450], 'title' => ['text' => $text], 'credits' => ['enabled' => false], 'plotOptions' => ['pie' => ['allowPointSelect' => true, 'cursor' => 'pointer', 'dataLabels' => ['enabled' => false], 'showInLegend' => true]], 'legend' => ['verticalAlign' => "bottom"], 'series' => [$date['series']]]]);
?>
</div>
开发者ID:bfyang5130,项目名称:tuanlogs,代码行数:9,代码来源:common_pie_chart.php


示例12: function

// increase Pjax Timeout default 1 sek
// Status.
if ($model->isOver()) {
    echo Html::tag('h2', Yii::t('app', 'Status: Finished'), ['class' => 'status status-finished']);
} else {
    if ($model->isOpen()) {
        echo Html::tag('h2', Yii::t('app', 'Status: Open'), ['class' => 'status status-open']);
    } else {
        echo Html::tag('h2', Yii::t('app', 'Status: Not Started'), ['class' => 'status status-closed']);
    }
}
// Column chart.
if ($model->hasStarted()) {
    $this->registerJsFile('@web/js/reflowChart.js', ['depends' => \yii\web\JqueryAsset::className(), 'depends' => miloschuman\highcharts\HighchartsAsset::className()]);
    echo Highcharts::widget(['htmlOptions' => ['id' => 'chartcontainer'], 'options' => ['title' => ['text' => $model->question], 'chart' => ['type' => 'column'], 'plotOptions' => ['column' => ['colorByPoint' => true]], 'colors' => ['#0044CC', '#0088CC', '#51A351', '#F89406', '#BD362F'], 'credits' => ['enabled' => false], 'xAxis' => ['categories' => ArrayHelper::getColumn($dataProvider->getModels(), 'text')], 'yAxis' => ['title' => ['text' => 'Votes'], 'allowDecimals' => false], 'series' => [['name' => 'Votes', 'data' => ArrayHelper::getColumn($dataProvider->getModels(), function ($option) {
        return intval($option->getValidVotesCount());
    }), 'showInLegend' => false]]]]);
}
// Overview table.
$used = $model->getUsedCodesCount();
$unused = $model->getUnusedCodesCount();
$total = $model->getValidCodesCount();
$membersCount = $model->getMembersCount();
$contactsCount = $model->getContactsCount();
$show_total_percentage_columns = false;
if ($model->select_min == 1 && $model->select_max == 1) {
    $show_total_percentage_columns = true;
}
echo Html::tag('h2', Yii::t('app', 'Overview'));
echo DetailView::widget(['model' => $model, 'attributes' => [['label' => Yii::t('app', 'Total Number of Voters'), 'value' => $total], ['label' => Yii::t('app', 'Votes Submitted'), 'value' => $used], ['label' => Yii::t('app', 'Votes Not Yet Submitted'), 'value' => $unused], ['label' => Yii::t('app', 'Total Members Count'), 'value' => $membersCount], ['label' => Yii::t('app', 'Total Contacts Count'), 'value' => $contactsCount], ['label' => Yii::t('app', 'Participation'), 'format' => ['percent', '2'], 'value' => $total > 0 ? $used / $total : 0]]]);
// Votes.
开发者ID:EuresTools,项目名称:eVote-web,代码行数:31,代码来源:_results_tab.php


示例13: array

<?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]]]]]);
开发者ID:cakpep,项目名称:spk-tht,代码行数:22,代码来源:_charts.php


示例14: JsExpression

<?php

use miloschuman\highcharts\Highcharts;
use yii\web\JsExpression;
use yii\helpers\Url;
?>

<?php 
$this->registerJs('$.getJSON("' . URL::to(['stat/link-stat-by-date']) . '", linkstsbyday);');
echo Highcharts::widget(['callback' => 'linkstsbyday', 'scripts' => ['modules/drilldown'], 'options' => ['chart' => ['type' => 'spline'], 'title' => ['text' => Yii::t('app', 'STAT_LINK_CLICKING')], 'subtitle' => ['text' => Yii::t('app', 'STAT_LINK_CLICKING_COUNT')], 'xAxis' => ['type' => 'category'], 'yAxis' => ['min' => 0, 'title' => ['text' => Yii::t('app', 'STAT_COUNT')]], 'legend' => ['enabled' => false], 'plotOptions' => ['spline' => ['lineWidth' => '4', 'states' => ['hover' => ['lineWidth' => 5]], 'marker' => ['enabled' => true]]], 'series' => [['name' => Yii::t('app', 'STAT_COUNT'), 'data' => new JsExpression('data.dt')]], 'drilldown' => ['series' => new JsExpression('data.drill')]]]);
开发者ID:anmaslov,项目名称:start-page,代码行数:10,代码来源:_linkStatByDate.php


示例15:

    ?>
</td>
                </tr>
            <?php 
}
?>
        </table>
    </div>
</div>

<h2>Proyectos FAZNI</h2>

<div class="row">
    <div class="col-md-9">
        <?php 
echo Highcharts::widget(['scripts' => ['modules/exporting', 'themes/grid-light'], 'options' => ['credits' => ['enabled' => false], 'lang' => Reportes::translations(), 'title' => ['text' => 'Beneficiarios por año vs meta'], 'chart' => ['type' => 'line'], 'xAxis' => ['allowDecimals' => false, 'categories' => $categories, 'title' => ['text' => 'Año']], 'yAxis' => ['title' => ['text' => 'Número de Usuarios']], 'series' => [['name' => 'Meta', 'data' => $metas_fazni], ['name' => 'Cobertura', 'data' => $series_fazni]]]]);
?>
    </div>
    <div class="col-md-3">
        <table class="table table-bordered table-striped">
            <tr>
                <th>Año</th>
                <th>Cobertura</th>
                <th>Meta</th>
            </tr>
            <?php 
for ($i = 0, $y = 2015; $y <= 2020; $y++, $i++) {
    ?>
                <tr>
                    <td><?php 
    echo $y;
开发者ID:jcesarrc,项目名称:cobertura,代码行数:31,代码来源:canvas_metas.php


示例16:

<?php

use miloschuman\highcharts\Highcharts;
$this->title = 'report each month';
?>


<p>
    You may change the content of this page by modifying
    the file <code><?php 
echo __FILE__;
?>
</code>.
</p>
<?php 
echo Highcharts::widget(['options' => ['title' => ['text' => 'รายงานจำนวนภารกิจแบ่งตามบุคคล'], 'xAxis' => ['categories' => ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.']], 'yAxis' => ['title' => ['text' => 'จำนวน']], 'series' => $data]]);
开发者ID:WittayaSi,项目名称:yii2-tak,代码行数:16,代码来源:report2.php


示例17:

	<div class="box-header with-border">
		<h3 class="box-title"><i class="fa  fa-sitemap"></i> <?php 
echo Yii::t('emp', 'Designation Wise Employee');
?>
</h3>
		<div class="box-tools <?php 
echo Yii::$app->language == 'ar' ? 'pull-left' : 'pull-right';
?>
">
			<button class="btn btn-info btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
		</div>
	</div>
	<div class="box-body">
<?php 
if (!empty($empDesignWise)) {
    echo Highcharts::widget(['scripts' => ['highcharts-3d'], 'options' => ['exporting' => ['enabled' => false], 'legend' => ['align' => 'center', 'verticalAlign' => 'bottom', 'layout' => 'vertical', 'x' => 0, 'y' => 0], 'credits' => ['enabled' => false], 'chart' => ['type' => 'pie', 'options3d' => ['enabled' => true, 'alpha' => 45, 'beta' => 0]], 'title' => ['text' => '', 'margin' => 0], 'plotOptions' => ['pie' => ['allowPointSelect' => true, 'cursor' => 'pointer', 'depth' => 35, 'dataLabels' => ['enabled' => false], 'showInLegend' => true], 'series' => ['pointPadding' => 0, 'groupPadding' => 0]], 'series' => [['name' => 'Total Employee', 'data' => $empDesignWise]]]]);
} else {
    echo '<div class="alert alert-danger">No results found.</div>';
}
?>
	</div>
   </div>
</div>


<!---End Course Wise Total Student Block--->
</div>
<!---End First Row Student Branch Wise Total & Year Wise Admission--->
	
<!---Start Second Row Recently Added Student List Block---> 
<div class="row">
开发者ID:EduSec,项目名称:EduSec,代码行数:31,代码来源:index.php


示例18: JsExpression

<?php

use app\models\Reportes;
use miloschuman\highcharts\Highcharts;
use yii\web\JsExpression;
?>

<?php 
if (empty($series)) {
    return;
}
echo Highcharts::widget(['scripts' => ['modules/exporting', 'themes/grid-light'], 'options' => ['credits' => ['enabled' => false], 'title' => ['text' => 'Beneficiarios por departamento'], 'lang' => Reportes::translations(), 'labels' => ['items' => [['html' => '', 'style' => ['left' => '50px', 'top' => '18px', 'color' => new JsExpression('(Highcharts.theme && Highcharts.theme.textColor) || "black"')]]]], 'series' => [['type' => 'pie', 'name' => 'Departamentos', 'coloyByPoint' => true, 'data' => $series, 'showInLegend' => true, 'dataLabels' => ['enabled' => true]]]]]);
开发者ID:jcesarrc,项目名称:cobertura,代码行数:12,代码来源:_canvas_beneficiarios.php


示例19: date

	<span class="page-header">Year Summary KPI : </span>
	<span id="tahunCreateTitle" class="dropdown">
		<a href="#"  data-toggle="dropdown" class="dropdown-toggle"><?php 
echo Html::encode($tahun_create);
?>
</a>
		<?php 
$start = 2015;
$end = date('Y');
$items = [];
for ($iTahunCreate = $start; $iTahunCreate <= $end; $iTahunCreate++) {
    $items[] = ['label' => $iTahunCreate, 'url' => ['', 'tahun_create' => $iTahunCreate]];
}
echo Dropdown::widget(['items' => $items]);
?>
	</span>
</h3>

<?php 
/*echo ExportMenu::widget([
	'dataProvider'=>$dataProvider,
]);*/
?>

<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'emptyCell' => "&nbsp;", 'columns' => [['header' => 'Bulan', 'attribute' => 'bulan_create'], ['header' => 'PO Total', 'attribute' => 'po_total'], ['header' => 'Tercapai %', 'attribute' => 'tercapai_persen'], ['header' => 'Tidak Tercapai %', 'attribute' => 'tdk_tercapai_persen'], ['header' => 'Belum Terkirim %', 'attribute' => 'blm_terkirim_persen'], ['header' => 'Total %', 'attribute' => 'total_persen']]]);
?>

<?php 
echo Highcharts::widget(['scripts' => ['highcharts-more', 'modules/exporting'], 'options' => ['chart' => ['type' => 'column'], 'title' => ['text' => 'Year Summary KPI'], 'xAxis' => ['categories' => $categories, 'title' => ['text' => 'Bulan']], 'yAxis' => ['title' => ['text' => 'Value Dalam Persen']], 'series' => $series]]);
开发者ID:hendri30,项目名称:OpenPrint,代码行数:30,代码来源:year_summary_kpi.php


示例20: JsExpression

                  <h3 class="box-title">Trace #<?php 
echo Html::encode($this->title);
?>
</h3>
                  <div class="box-tools pull-right">
                      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                  </div>

                  <!-- /.box-tools -->
                </div>
                <!-- /.box-header -->
                <div id="modal-body<?php 
echo $model->id;
?>
">

                  <div id="container<?php 
echo $model->id;
?>
">
                  </div>
                  <?php 
echo Highcharts::widget(['scripts' => ['highcharts-more', 'modules/exporting', 'themes/grid'], 'options' => ['credits' => 'false', 'gridLineWidth' => 0, 'chart' => ['renderTo' => 'container' . $model->id, 'borderWidth' => '0', 'backgroundColor' => '#FFFFFF', 'plotBackgroundColor' => '#FFFFFF', 'marginLeft' => 70], 'title' => ['text' => null], 'xAxis' => ['categories' => $arr_freq], 'series' => [['name' => 'Pout(dBm)', 'data' => $arr_power, 'color' => new JsExpression('Highcharts.getOptions().colors[1]')]]]]);
?>
                </div>
                <!-- /.box-body -->
              </div>


</div>
开发者ID:atecloud,项目名称:atestat,代码行数:30,代码来源:view.php



注:本文中的miloschuman\highcharts\Highcharts类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Builder\SimpleXMLElement类代码示例发布时间:2022-05-23
下一篇:
PHP ckeditor\CKEditor类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap