当前位置: 首页>>代码示例>>PHP>>正文


PHP pData::SetSerieSymbol方法代码示例

本文整理汇总了PHP中pData::SetSerieSymbol方法的典型用法代码示例。如果您正苦于以下问题:PHP pData::SetSerieSymbol方法的具体用法?PHP pData::SetSerieSymbol怎么用?PHP pData::SetSerieSymbol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pData的用法示例。


在下文中一共展示了pData::SetSerieSymbol方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pData

// Standard inclusions
include "pChart/pData.class";
include "pChart/pChart.class";
// Dataset definition
$DataSet = new pData();
$DataSet->AddPoint(array(60, 70, 90, 110, 100, 90), "Serie1");
$DataSet->AddPoint(array(40, 50, 60, 80, 70, 60), "Serie2");
$DataSet->AddPoint(array("Jan", "Feb", "Mar", "Apr", "May", "Jun"), "Serie3");
$DataSet->AddSerie("Serie1");
$DataSet->AddSerie("Serie2");
$DataSet->SetAbsciseLabelSerie("Serie3");
$DataSet->SetSerieName("Company A", "Serie1");
$DataSet->SetSerieName("Company B", "Serie2");
$DataSet->SetYAxisName("Product sales");
$DataSet->SetYAxisUnit("k");
$DataSet->SetSerieSymbol("Serie1", "Sample/Point_Asterisk.gif");
$DataSet->SetSerieSymbol("Serie2", "Sample/Point_Cd.gif");
// Initialise the graph
$Test = new pChart(700, 230);
$Test->setFontProperties("Fonts/tahoma.ttf", 8);
$Test->setGraphArea(65, 30, 650, 200);
$Test->drawFilledRoundedRectangle(7, 7, 693, 223, 5, 240, 240, 240);
$Test->drawRoundedRectangle(5, 5, 695, 225, 5, 230, 230, 230);
$Test->drawGraphArea(255, 255, 255, TRUE);
$Test->drawScale($DataSet->GetData(), $DataSet->GetDataDescription(), SCALE_NORMAL, 150, 150, 150, TRUE, 0, 2, TRUE);
$Test->drawGrid(4, TRUE, 230, 230, 230, 50);
// Draw the title
$Test->setFontProperties("Fonts/pf_arma_five.ttf", 6);
$Title = "Comparative product sales for company A & B  ";
$Test->drawTextBox(65, 30, 650, 45, $Title, 0, 255, 255, 255, ALIGN_RIGHT, TRUE, 0, 0, 0, 30);
// Draw the line graph
开发者ID:shojibflamon,项目名称:Bar-Code-example,代码行数:31,代码来源:Example22.php

示例2: pData

 $period1,$periodname1,$sales1,$expenses1<br/>
 $period2,$periodname2,$sales2,$expenses2<br/>
 $period3,$periodname3,$sales3,$expenses3<br/>
 $period4,$periodname4,$sales4,$expenses4<br/>
 $period5,$periodname5,$sales5,$expenses5<br/>
 EOF;
 */
 $DataSet = new pData();
 $DataSet->AddPoint(array($pl0, $pl1, $pl2, $pl3, $pl4, $pl5), "Serie1");
 $DataSet->AddPoint(array(0, 0, 0, 0, 0, 0), "Serie2");
 $DataSet->AddPoint(array($periodname0, $periodname1, $periodname2, $periodname3, $periodname4, $periodname5), "Serie3");
 $DataSet->AddSerie("Serie1");
 $DataSet->AddSerie("Serie2");
 $DataSet->SetAbsciseLabelSerie("Serie3");
 $DataSet->SetSerieName("Profit/Loss", "Serie1");
 $DataSet->SetSerieSymbol("Serie2", "");
 $DataSet->SetSerieName("0 Value", "Serie2");
 $DataSet->SetYAxisName("Amount({$defcurrencycode})");
 // $DataSet->SetYAxisUnit("RM");
 $Test = new pChart(700, 230);
 $Test->setFontProperties("../system/class/pchart/Fonts/tahoma.ttf", 8);
 $Test->setGraphArea(65, 30, 650, 200);
 $Test->drawFilledRoundedRectangle(7, 7, 693, 223, 5, 240, 240, 240);
 $Test->drawRoundedRectangle(5, 5, 695, 225, 5, 230, 230, 230);
 $Test->drawGraphArea(255, 255, 255, TRUE);
 $Test->drawScale($DataSet->GetData(), $DataSet->GetDataDescription(), SCALE_NORMAL, 150, 150, 150, TRUE, 0, 2, TRUE);
 $Test->drawGrid(4, TRUE, 230, 230, 230, 50);
 // Draw the title
 $Test->setFontProperties("../system/class/pchart/Fonts/pf_arma_five.ttf", 8);
 $Title = "Profit & Loss For {$defaultorganization_name}";
 $Test->drawTextBox(65, 10, 650, 25, $Title, 0, 255, 255, 255, ALIGN_CENTER, TRUE, 0, 0, 0, 30);
开发者ID:gauravsaxena21,项目名称:simantz,代码行数:31,代码来源:chartincomestatment.php

示例3: array

$min_v_arrays = array();
foreach ($params['data'] as $a) {
    $min_v_arrays[] = $min_y_value;
}
// Dataset definition
$DataSet = new pData();
$DataSet->AddPoint($params['data'], "Serie3");
$DataSet->AddPoint($min_v_arrays, "Serie4");
$DataSet->AddPoint($x_lable_arr, "x_lable_name");
$DataSet->SetAbsciseLabelSerie("x_lable_name");
$DataSet->AddAllSeries();
$DataSet->RemoveSerie("x_lable_name");
$DataSet->SetSerieName("", "Serie3");
// $DataSet->SetYAxisName("Kg");
// $DataSet->SetXAxisName("week");
$DataSet->SetSerieSymbol("Serie3", $normal_circle);
$DataSet->SetSerieSymbolLastOne("Serie3", $last_circle);
// Initialise the graph
$Test = new pChart($width, $height);
$Test->setFontPropertiesDir("{$pChart_dir}/Fonts");
// Add an image
$Test->drawFromPNG($background, 0, 0);
$Test->reportWarnings("GD");
$Test->setFixedScale($min_y_value, $max_y_value, 5);
$Test->setFontProperties("{$pChart_dir}/Fonts/tahoma.ttf", 14);
$Test->setGraphArea($area_margin_left, 20, $width - 30, $height - 55);
$Test->drawScale($DataSet->GetData(), $DataSet->GetDataDescription(), SCALE_NORMAL, 255, 255, 255, TRUE, 0, 2, TRUE, 1);
$Test->drawGrid(4, TRUE, 233, 218, 213, 0);
//画网格
// Draw the area
$Test->drawArea($DataSet->GetData(), "Serie3", "Serie4", 239, 238, 227, 40);
开发者ID:sdgdsffdsfff,项目名称:php-test-analyze,代码行数:31,代码来源:create_yuer_weight_img.php

示例4: pData

include "pChart/pChart.class.php";
// Dataset definition
$DataSet = new pData();
// $DataSet->AddPoint(array(10,9.4,7.7,5,1.7,-1.7,-5,-7.7,-9.4,-10,-9.4,-7.7,-5,-1.8,1.7),"Serie1");
// $DataSet->AddPoint(array(0,3.4,6.4,8.7,9.8,9.8,8.7,6.4,3.4,0,-3.4,-6.4,-8.6,-9.8,-9.9),"Serie2");
$DataSet->AddPoint(array(7.1, 9.1, 10, 9.699999999999999, 8.199999999999999, 5.7, 2.6, -0.9, -4.2, -7.1, -9.1, -10, -9.699999999999999, -8.199999999999999, -5.8), "Serie3");
// $DataSet->AddPoint(array("Jan","Jan","Jan","Feb","Feb","Feb","Mar","Mar","Mar","Apr","Apr","Apr","May","May","May"),"Serie4");
$DataSet->AddPoint(array(-12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, -12), "Serie4");
$DataSet->AddAllSeries();
// $DataSet->SetAbsciseLabelSerie("Serie4");
// $DataSet->SetSerieName("Max Average","Serie1");
// $DataSet->SetSerieName("Min Average","Serie2");
$DataSet->SetSerieName("Temperature", "Serie3");
$DataSet->SetYAxisName("Kg");
$DataSet->SetXAxisName("week");
$DataSet->SetSerieSymbol("Serie3", "/home/ys/www/mmbang/www/sources/admin/pChart/Sample/normal_circle.png");
// Initialise the graph
$Test = new pChart(600, 230);
// Add an image
$Test->drawFromPNG("Sample/background.png", 0, 0);
$Test->reportWarnings("GD");
$Test->setFixedScale(-12, 13, 5);
//
$Test->setFontProperties("Fonts/tahoma.ttf", 8);
$Test->setGraphArea(45, 20, 550, 195);
//$Test->drawFilledRoundedRectangle(7,7,693,223,5,243,249,249);
// $Test->drawRoundedRectangle(5,5,695,225,5,230,230,230);
// $Test->drawGraphArea(243,249,249,TRUE);
$Test->drawScale($DataSet->GetData(), $DataSet->GetDataDescription(), SCALE_NORMAL, 255, 237, 237, TRUE, 0, 2, TRUE, 3);
$Test->drawGrid(4, TRUE, 230, 230, 230, 5);
// Draw the 0 line
开发者ID:sdgdsffdsfff,项目名称:php-test-analyze,代码行数:31,代码来源:Test004.php


注:本文中的pData::SetSerieSymbol方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。