當前位置: 首頁>>代碼示例>>PHP>>正文


PHP highcharts\Highcharts類代碼示例

本文整理匯總了PHP中miloschuman\highcharts\Highcharts的典型用法代碼示例。如果您正苦於以下問題:PHP Highcharts類的具體用法?PHP Highcharts怎麽用?PHP Highcharts使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Highcharts類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的miloschuman\highcharts\Highcharts類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。