本文整理汇总了PHP中Chart::line方法的典型用法代码示例。如果您正苦于以下问题:PHP Chart::line方法的具体用法?PHP Chart::line怎么用?PHP Chart::line使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chart
的用法示例。
在下文中一共展示了Chart::line方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
<?php
} else {
?>
--
<?php
}
?>
</h2>
<hr class="statcard-hr">
</div>
<?php
$chart_colors = array(array('fill' => 'rgba(33,150,243,.1)', 'stroke' => 'rgba(33,150,243,.8)', 'point' => 'rgba(33,150,243,.8)', 'pointStroke' => 'rgba(33,150,243,.8)'));
?>
<?php
echo Chart::line($current_by_date, array('height' => 94, 'width' => 378, 'options' => array('animation' => false, 'responsive' => true, 'bezierCurve' => true, 'bezierCurveTension' => '.25', 'showScale' => true, 'pointDotRadius' => 0, 'pointDotStrokeWidth' => 0, 'pointDot' => false, 'maintainAspectRatio' => true, 'scaleShowVerticalLines' => false, 'tooltipTemplate' => '<%= datasetLabel %><%= value %>', 'multiTooltipTemplate' => '<%= datasetLabel %><%= value %>', 'showTooltips' => true)), $chart_colors);
?>
</div>
</div>
<div class="col-md-12">
<div class="statcard statcard-success">
<ul class="nav nav-pills nav-justified text-center">
<li role="presentation">
<div class="p-a">
<span class="statcard-desc"><?php
echo __('Current');
?>
</span>
<h2 class="statcard-number">
<?php
if ($current_total !== NULL) {
示例2: array
?>
--
<?php
}
?>
</h2>
<?php
}
?>
<hr class="statcard-hr">
</div>
<?php
$chart_colors = array(array('fill' => 'rgba(33,150,243,.1)', 'stroke' => 'rgba(33,150,243,.8)', 'point' => 'rgba(33,150,243,.8)', 'pointStroke' => 'rgba(33,150,243,.8)'));
?>
<?php
echo Chart::line($current_by_date, array('height' => 94, 'width' => 378, 'options' => array('responsive' => true, 'maintainAspectRatio' => true, 'scaleShowVerticalLines' => false, 'scales' => array('xAxes' => array(array('gridLines' => array('display' => false))), 'yAxes' => array(array('ticks' => array('min' => 0)))), 'legend' => array('display' => false), 'tooltipTemplate' => '<%= datasetLabel %><%= value %>', 'multiTooltipTemplate' => '<%= datasetLabel %><%= value %>')), $chart_colors);
?>
</div>
</div>
<div class="col-md-12">
<div class="statcard statcard-success">
<ul class="nav nav-pills nav-justified text-center">
<li role="presentation">
<div class="p-a">
<span class="statcard-desc"><?php
echo __('Current');
?>
</span>
<h2 class="statcard-number">
<?php
if ($current_total !== NULL) {
示例3: __
echo __('Sales');
?>
</span>
<h2 class="statcard-number">
<?php
echo i18n::format_currency($sales_total);
?>
<small class="delta-indicator <?php
echo Num::percent_change($sales_total, $sales_total_past) < 0 ? 'delta-negative' : 'delta-positive';
?>
"><?php
echo Num::percent_change($sales_total, $sales_total_past);
?>
</small>
<small class="ago"><?php
echo sprintf(__('%s days ago'), $days_ago);
?>
</small>
</h2>
<hr class="statcard-hr">
</div>
<div>
<?php
echo Chart::line($sales, $chart_config, $chart_colors);
?>
</div>
</a>
</div>
</div>
</div>
示例4: _e
?>
" data-date="<?php
echo $to_date;
?>
" data-date-format="yyyy-mm-dd">
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<button type="submit" class="btn btn-base-dark"><?php
echo _e('Filter');
?>
</button>
<div>
<br>
<strong class="text-center"><?php
echo _e('Views and Contacts statistic');
?>
</strong>
<?php
echo Chart::line($stats_daily, array('height' => 400, 'width' => 400, 'options' => array('responsive' => true, 'maintainAspectRatio' => false, 'scaleShowVerticalLines' => false, 'multiTooltipTemplate' => '<%= datasetLabel %> - <%= value %>')));
?>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
示例5: __
echo __('Tickets Closed');
?>
</span>
<h2 class="statcard-number">
<?php
echo Num::format($tickets_closed_total, 0);
?>
<small class="delta-indicator <?php
echo Num::percent_change($tickets_closed_total, $tickets_closed_total_past) < 0 ? 'delta-negative' : 'delta-positive';
?>
"><?php
echo Num::percent_change($tickets_closed_total, $tickets_closed_total_past);
?>
</small>
<small class="ago"><?php
echo sprintf(__('%s days ago'), $days_ago);
?>
</small>
</h2>
<hr class="statcard-hr">
</div>
<div>
<?php
echo Chart::line($tickets_closed, $chart_config, $chart_colors);
?>
</div>
</a>
</div>
</div>
</div>