本文整理汇总了PHP中x_axis::grid_colour方法的典型用法代码示例。如果您正苦于以下问题:PHP x_axis::grid_colour方法的具体用法?PHP x_axis::grid_colour怎么用?PHP x_axis::grid_colour使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类x_axis
的用法示例。
在下文中一共展示了x_axis::grid_colour方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xAxis
/**
* undocumented function
*
* @param string $options
* @return void
* @access public
*/
function xAxis($options)
{
$x = null;
if (isset($options['x_axis'])) {
$x = new x_axis();
$xOptions = $options['x_axis'];
if (isset($xOptions['color'])) {
$x->colour($xOptions['color']);
}
if (isset($xOptions['grid_colour'])) {
$x->grid_colour($xOptions['grid_colour']);
}
if (isset($xOptions['tick_height'])) {
$x->tick_height($xOptions['tick_height']);
}
if (isset($xOptions['stroke'])) {
$x->stroke($xOptions['stroke']);
}
if (isset($xOptions['labels'])) {
$x->set_labels_from_array($xOptions['labels']);
if (isset($xOptions['label_direction'])) {
$x->labels->set_vertical();
}
}
}
return $x;
}
示例2: title
$type_idx = $_GET['i'];
$type_idx = $type_idx == 0 ? $type_idx : $type_idx - 1;
$title = new title("Individual Portfolio Performance (" . $portfolio_type[$type_idx] . ")");
$title->set_style("{font-size: 25px; font-family: Calibri; font-weight: bold; color: #121212; text-align: center;}");
$chart->set_title($title);
// y axis properties
$y = new y_axis();
$y_min = 0.0;
$y_max = 0.0;
$y_min = floor(0.995 * $amt_min);
$y_max = ceil(1.005 * $amt_max);
$y->set_grid_colour('#EFEFEF');
$y->set_range($y_min, $y_max, round(($y_max - $y_min) / 5.0));
$chart->set_y_axis($y);
// y legend properties
$y_legend = new y_legend('Amount ($)');
$y_legend->set_style('{font-size:15px; font-family:Calibri; color:#121212}');
$chart->set_y_legend($y_legend);
// x axis properties
$x = new x_axis();
$x->set_labels_from_array($x_labels);
$x->grid_colour('#EFEFEF');
$chart->set_x_axis($x);
// background properties
$chart->set_bg_colour('#FFFFFF');
// menu
$m = new ofc_menu("#E0E0FF", "#707070");
$m->values(array(new ofc_menu_item('Toggle view', 'toggle')));
//$chart->set_menu($m);
echo $chart->toPrettyString();
//echo $chart_data;