<?php use kartik\helpers\Html; use ptrnov\fusionchart\Chart; use ptrnov\fusionchart\ChartAsset; use yii\helpers\Url; ChartAsset::register($this); $vwGrantPilotProject = Chart::Widget(['urlSource' => url::base() . '/widget/pilotproject-chat', 'userid' => '*****@*****.**', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'gantt', 'renderid' => 'gant-pilotproject', 'autoRender' => true, 'width' => '100%', 'height' => '350%', 'chartOption' => ['caption' => 'Summary Customers Parents', 'subCaption' => 'Children Count Details', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]); ?> <div class="row" > <?php echo Html::panel(['heading' => false, 'body' => $vwGrantPilotProject], Html::TYPE_INFO); ?> <button id="print">Print</button> </div> <?php $this->registerJs("\t\r\n\t\t\$(document).ready(function() {\r\n\t\t\t//revenueChart.render();\r\n\t\t});\r\n\t", $this::POS_READY);
<?php use kartik\helpers\Html; use yii\widgets\DetailView; use yii\bootstrap\ActiveForm; use kartik\tabs\TabsX; use yii\helpers\Json; use yii\web\Response; use yii\helpers\ArrayHelper; use ptrnov\fusionchart\Chart; use ptrnov\fusionchart\ChartAsset; ChartAsset::register($this); $parentCustomrt = Chart::Widget(['dataArray' => $parenCustomer, 'dataField' => ['label', 'value'], 'type' => 'bar3d', 'renderid' => 'chart-cust-parent', 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Summary Customers Parents', 'subCaption' => 'Children Count Details', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]); $kategoriCustomrt = Chart::Widget(['dataArray' => $parentKategori, 'dataField' => ['CUST_KTG_NM', 'CUST_CNT'], 'type' => 'pyramid', 'renderid' => 'chart-piramid1', 'width' => '100%', 'height' => '350', 'chartOption' => ['caption' => 'Summary Category Parent', 'alignCaptionWithCanvas' => "2", 'theme' => 'fint', 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "1", 'is2D' => "0", 'showValues' => "1", 'showLegend' => "1", 'showPercentValues' => "1"]]); $listKategori = Chart::Widget(['dataArray' => $ChartCountKategori, 'dataField' => ['KTG_NM', 'CUST_CNT'], 'type' => 'column3d', 'renderid' => 'chart-cust-ktg', 'width' => '100%', 'height' => '270%', 'chartOption' => ['caption' => 'Summary Customers Category Detail', 'xaxisName' => 'Category Name', 'yaxisName' => 'Count ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]); ?> <div class="container-fluid" style="padding-left: 10px; padding-right: 10px" > <div class="row"> <div class="col-xs-12 col-sm-12 col-dm-12 col-lg-12"> <div class="row"> <!-- KIRI !--> <div class="col-lg-7 col-md-7" style="padding-top:10px"> <?php echo Html::panel(['heading' => false, 'body' => $parentCustomrt], Html::TYPE_INFO); ?> </div> <!-- KANAN !--> <div class="col-lg-5 col-md-5" style="padding-top:10px"> <?php echo $kategoriCustomrt;
<?php use kartik\helpers\Html; use ptrnov\fusionchart\Chart; use ptrnov\fusionchart\ChartAsset; use yii\helpers\Url; ChartAsset::register($this); $mslineDistGudang = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/dist-stock-gudang', 'userid' => '*****@*****.**', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'mscolumn3d', 'renderid' => 'mscolumn3d-distributor-gudang', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]); $mslineDistPo = Chart::Widget(['urlSource' => url::base() . '/dashboard/rpt-esm-chart-salesmd/visit-distributor-po', 'userid' => '*****@*****.**', 'dataArray' => '[]', 'dataField' => '[]', 'type' => 'mscolumn3d', 'renderid' => 'mscolumn3d-distributor-po-all', 'autoRender' => true, 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Daily Customers Visits', 'subCaption' => 'Custommer Call, Active Customer, Efictif Customer', 'xaxisName' => 'Parents', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'is2D' => "0", 'showValues' => "1", 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]); ?> <div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt; padding-top:-150px"> <div class="col-xs-12 col-sm-12 col-dm-12 col-lg-12"> <div class="row" > <button id="print">Print</button> <?php echo Html::panel(['heading' => false, 'body' => $mslineDistPo], Html::TYPE_INFO); ?> </div> </div> <div class="col-xs-12 col-sm-12 col-dm-12 col-lg-12"> <div class="row" > <?php echo Html::panel(['heading' => false, 'body' => $mslineDistGudang], Html::TYPE_INFO); ?> </div> </div> <button id="print">Print</button>
use yii\helpers\Json; use yii\web\Response; use yii\helpers\ArrayHelper; use ptrnov\fusionchart\Chart; use ptrnov\fusionchart\ChartAsset; ChartAsset::register($this); $this->sideCorp = 'ESM-Customers'; /* Title Select Company pada header pasa sidemenu/menu samping kiri */ $this->sideMenu = 'esm_customers'; /* kd_menu untuk list menu pada sidemenu, get from table of database */ $valCustAll = $count_CustPrn > 0 ? $model_CustPrn[0]['COUNT_ALL_CUST'] : 0; $valCustModern = $count_CustPrn > 0 ? $model_CustPrn[1]['COUNT_CUST'] : 0; $valCustGeneral = $count_CustPrn > 0 ? $model_CustPrn[2]['COUNT_CUST'] : 0; $valCustHoreca = $count_CustPrn > 0 ? $model_CustPrn[3]['COUNT_CUST'] : 0; $valCustOther = $count_CustPrn > 0 ? $model_CustPrn[4]['COUNT_CUST'] : 0; $parentCustomrt = Chart::Widget(['dataArray' => $resultCountChildParen, 'dataField' => ['label', 'value'], 'type' => 'bar2d', 'renderid' => 'chart-cust-parent1', 'width' => '100%', 'height' => '500%', 'chartOption' => ['caption' => 'Customers Parent', 'subCaption' => 'Count Child Details', 'xaxisName' => 'Parent', 'yaxisName' => 'Total Child ', 'theme' => 'fint', 'palettecolors' => "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e", 'bgColor' => "#ffffff", 'showBorder' => "0", 'showCanvasBorder' => "0"]]); ?> <div class="container-fluid" style="padding-left: 20px; padding-right: 20px" > <div class="row"> <div class="col-xs-12 col-sm-12 col-dm-12 col-lg-12"> <div class="row"> <!-- KANAN !--> <div class="col-lg-8 col-md-8" style="padding-top:10px"> <?php echo Html::panel(['body' => '<div id="chart-cust-parent1" ></div>'], Html::TYPE_INFO);