本文整理汇总了PHP中y_axis::set_stroke方法的典型用法代码示例。如果您正苦于以下问题:PHP y_axis::set_stroke方法的具体用法?PHP y_axis::set_stroke怎么用?PHP y_axis::set_stroke使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类y_axis
的用法示例。
在下文中一共展示了y_axis::set_stroke方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (!file_exists($fichierImage)) {
$G_MesCouleurs = array('#D080C0', '#EF00FF', '#F04040', '#008080', '#104080', '#2F8080', '#30FF80', '#4080FF', '#5F80C0', '#6F0000', '#7080FF', '#800040', '#9F0080', '#A04000', '#BF8000', '#C08000', '#0A00FF', '#1A0040', '#2A0080', '#3A00FF', '#4A0000', '#5A4000', '#6A4000', '#7A4040', '#8A0080', '#9A0040', '#AA0080', '#BA0000', '#CA8000', '#DA8040', '#EA8080');
$tab_libelles2 = array();
$data_val2 = array();
if (sizeof($listeJeux) > 3) {
for ($j = 0; $j < sizeof($listeJoueurs); $j++) {
$tab_libelles2[] = $listeJoueurs[$j]['nom'];
for ($i = sizeof($listeJeux) - 3; $i < sizeof($listeJeux); $i++) {
$data_val2[$i][] = $G_ListeResultatsMoyens[$i][$j];
}
}
}
// Ordonnées
$y2 = new y_axis();
$y2->set_range($valmin, $valmax, 5);
$y2->set_stroke(2);
$y2->set_colour("#d000d0");
// ToolTip
$t2 = new tooltip();
$t2->set_shadow(true);
$t2->set_stroke(2);
$t2->set_colour("#6E604F");
$t2->set_background_colour("#BDB396");
$t2->set_title_style("{font-size: 14px; color: #CC2A43;}");
$t2->set_body_style("{font-size: 10px; font-weight: bold; color: #000000;}");
// titre des absisses
//$x_labels = new x_axis_labels();
//$x_labels->set_steps( 1 );
//$x_labels->set_vertical();
//$x_labels->set_labels( $tab_libelles );
//$x_labels->set_vertical();
示例2: CONVERT
$dateRange = "DATE(ts) between CONVERT('" . $dtt[0] . "',DATE) and CONVERT('" . $dtt[1] . "',DATE)";
}
$title = new title("Page Views using " . $br . " browser between date " . $dt);
$bar = new bar_glass(55, '#D54C78', '#C31812');
include_once 'db.php';
$q = mysql_query("select count(c_browser) as tot from tracker where c_id=1234 and c_browser='" . $br . "' and " . $dateRange);
$bar->set_values(array(1245, 1202, 455, 120, 3652, 454, 121, 452, 1023, 1054, 1500, 1245, 1278, 123, 6598, 6547, 6589, 6999, 7854, 7562, 5478, 1200, 1254, 1562, 5415, 2587, 4589));
$chart = new open_flash_chart();
$chart->set_title($title);
$chart->add_element($bar);
$x = new x_axis();
$x->set_range(0, 31, 1);
$chart->set_x_axis($x);
$chart->set_y_axis($x);
$y = new y_axis();
$y->set_stroke(3);
$y->set_colour('#000000');
$y->set_tick_length(7);
$y->set_grid_colour('#000000');
// grid steps:
$y->set_range(0, 10000, 1000);
//$y_labels = new y_axis_labels();
//$y_labels->set_labels( array('Zero','One','Two','Three','Four','Five','Six','Seven','Eight') );
// visible labels steps:
//$y_labels->set_steps(4);
//$y->set_labels($y_labels);
//
// Add the Y Axis object to the chart:
//
$chart->set_y_axis($y);
$chart->set_bg_colour('#FFFFCC');