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


PHP renderChartHTML函数代码示例

本文整理汇总了PHP中renderChartHTML函数的典型用法代码示例。如果您正苦于以下问题:PHP renderChartHTML函数的具体用法?PHP renderChartHTML怎么用?PHP renderChartHTML使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: line_chart_fusion2

function line_chart_fusion2($datax, $datay, $title, $width = 500, $height = 369)
{
    if (!is_array($datax) || !is_array($datay)) {
        return "";
    }
    $fileContents = '';
    foreach ($datay as $datay_item) {
        $fileContents .= "<set name='" . $datay_item . "' value='" . $datax[$datay_item] . "'/>";
    }
    $fileContents = "<graph labelDisplay='WRAP' caption='" . $title . "' shownames='1' showvalues='1' decimalPrecision='0' outCnvBaseFontSize='12' baseFontSize='12' pieYScale='45' pieBorderAlpha='40' pieFillAlpha='70' pieSliceDepth='15' pieRadius='100'>" . $fileContents . "</graph>";
    $return = renderChartHTML("include/fusioncharts/Charts/FCF_Line.swf", "", $fileContents, "reportChart", $width, $height);
    return $return;
}
开发者ID:honj51,项目名称:taobaocrm,代码行数:13,代码来源:pie_chart.php

示例2: vertical_graph_fusion2

function vertical_graph_fusion2($datax, $datay, $title, $width = 800, $height = 400)
{
    if (!is_array($datay) || !is_array($datax)) {
        return;
    }
    $fileContents = '';
    $i = 0;
    foreach ($datay as $datay_item) {
        $color = generate_fusioncharts_color($datay_item, $i);
        $fileContents .= "<set name='" . $datay_item . "' value='" . $datax[$datay_item] . "' color='" . $color . "' />";
        $i++;
    }
    $fileContents = "<graph labelDisplay='WRAP' caption='" . $title . "' shownames='1' showvalues='1'  numDivLines='4' formatNumberScale='0' decimalPrecision='0'\nanchorSides='10' anchorRadius='3' anchorBorderColor='009900' outCnvBaseFontSize='12' baseFontSize='12'>" . $fileContents . "</graph>";
    $return = renderChartHTML("include/fusioncharts/Charts/FCF_Column3D.swf", "", $fileContents, "reportChart", $width, $height);
    return $return;
}
开发者ID:honj51,项目名称:taobaocrm,代码行数:16,代码来源:vertical_chart.php

示例3: extract

<?php

require_once "../includes/FusionCharts.php";
require_once '../includes/connect.php';
$sql = "select extract( Year from vm.voucher_date),\n" . "sum( case when vd.account_code = 4001 then vd.credit_amount-vd.debit_amount else 0 end ) Sales\n" . ", sum( case when vd.account_code > 5000 then vd.debit_amount-vd.credit_amount else 0 end ) Expenses\n" . "from voucher_master vm\n" . "inner join voucher_detail vd on vd.voucher_id = vm.voucher_id\n" . "group by extract( Year from vm.voucher_date)\n" . "order by 1 asc\n" . "limit 0, 5\n";
$result = mysql_query($sql) or die("Couldn t execute query." . mysql_error());
$rows = array();
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
    $rows[] = $row;
}
$strXML = "";
$strXML .= "<chart palette='1' showValues='0' yAxisValuesPadding='10' numberPrefix='Rs' bgColor='f7f2ea' borderColor='f7f2ea' borderthickness='0' bgAlpha='0'>";
$strXML .= "<categories>";
foreach ($rows as $row) {
    $strXML .= "<category label='{$row['0']}' />";
}
$strXML .= "</categories>";
$strXML .= "<dataset seriesName='Sales'>";
foreach ($rows as $row) {
    $strXML .= "<set value='{$row['1']}' />";
}
$strXML .= "</dataset>";
$strXML .= "<dataset seriesName='Expenses' renderAs='Line'>";
foreach ($rows as $row) {
    $strXML .= "<set value='{$row['2']}' />";
}
$strXML .= "</dataset>";
$strXML .= "</chart>";
echo renderChartHTML("../swf/MSColumnLine3D.swf", "", $strXML, "chart1", 400, 270, false, false, "true");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:29,代码来源:chart1.php

示例4: sum

<?php

require_once "../includes/FusionCharts.php";
require_once '../includes/connect.php';
$sql = "select p.party_city, sum(sd.sales_qty*sd.sales_rate) Sale_Amount\n" . "from sales_master sm\n" . "inner join sales_detail sd on sm.sale_master_id = sd.sale_master_id\n" . "left outer join party p on p.party_code = sm.party_code\n" . "where sm.company_ref_id = {$_SESSION['company_id']}\n" . "and p.party_name is not null\n" . "group by p.party_city\n" . "order by 2 desc\n" . "limit 0, 5";
$result = mysql_query($sql) or die("Couldn t execute query." . mysql_error());
$rows = array();
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
    $rows[] = $row;
}
$strXML = "";
$strXML .= "<chart decimals='0' numberPrefix='Rs' isHollow='0' streamlinedData='0' bgColor='f7f2ea' borderColor='f7f2ea' borderthickness='0' bgAlpha='0'>";
foreach ($rows as $row) {
    $strXML .= "<set label='{$row['0']}' value='{$row['1']}' />";
}
$strXML .= "</chart>";
echo renderChartHTML("../swf/Funnel.swf", "", $strXML, "chart3", 400, 270, false, false, "true");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:17,代码来源:chart3.php

示例5: distinct

//$sql = $db->query("SELECT distinct(tplid) FROM ".DB_TABLEPRE."workclass where DATE_SUB(CURDATE(), INTERVAL 1 DAY)<=date(date)  ORDER BY id Asc");
$sql = $db->query("SELECT distinct(tplid) FROM " . DB_TABLEPRE . "workclass where DATEDIFF(date,NOW()) =0 ORDER BY id Asc");
while ($row = $db->fetch_array($sql)) {
    $tplid .= $row['tplid'] . ',';
}
$sql = $db->query("SELECT tplid,title FROM " . DB_TABLEPRE . "workclass_template where tplid in(" . substr($tplid, 0, -1) . ") ORDER BY tplid Asc");
while ($row = $db->fetch_array($sql)) {
    //$numtpl = $db->result("SELECT COUNT(*) AS numtpl FROM ".DB_TABLEPRE."workclass WHERE tplid='".$row['tplid']."' and DATE_SUB(CURDATE(), INTERVAL 1 DAY)<=date(date)");
    $numtpl = $db->result("SELECT COUNT(*) AS numtpl FROM " . DB_TABLEPRE . "workclass WHERE tplid='" . $row['tplid'] . "' and DATEDIFF(date,NOW()) =0");
    $strtype1 .= "<set label='" . $row['title'] . "' value='" . $numtpl . "' />";
}
$strtype1 .= "</chart>";
?>

<div id="module_3" class="module listColor"><div class="head"><h4 id="module_3_head" class="module_0169c2 color_style_0 moduleHeader"><a href="javascript:_resize(3);" class="expand expand_arrow" id="img_resize_3" title="折叠"></a><span id="module_3_text" class="text" onclick="_resize(3);">今日流程</span></h4></div><div id="module_3_body" class="module_body"><div id="module_3_ul" class="module_div"><?php 
echo renderChartHTML("template/fusioncharts/Line.swf", "", $strtype1, "", $fw, $fh, false);
?>
</div></div></div>
<div class="shadow"></div>
<div class="shadow"></div>
  </td>
  <td id="col_r" valign="top">
	
<?php 
home_workclass(1);
?>


<div class="shadow"></div>
  </td>
 </tr>
开发者ID:haogm123,项目名称:ydoa,代码行数:31,代码来源:home_text_work.php

示例6: renderChartHTML

$strXML .= "<set label = 'Animales Perdidos' value ='" . $intTotalAnio7 . "' color = 'EA1000' />";
$strXML .= "<set label = 'Estados de solicitudes activas' value ='" . $intTotalAnio8 . "' color = '0000FF' />";
$strXML .= "<set label = 'Ciudades Activas en SIZ' value ='" . $intTotalAnio9 . "' color = 'EA1000' />";
$strXML .= "<set label = 'Animales Registrados' value ='" . $intTotalAnio9 . "' color = '6D8D16' />";
// Cerramos la etiqueta "chart".
$strXML .= "</chart>";
// Por último imprimo el gráfico.
// renderChartHTML: función que se encuentra en el archivo FusionCharts.php
// Envía varios parámetros.
// 1er parámetro: indica la ruta y nombre del archivo "swf" que contiene el gráfico. En este caso Columnas ( barras) 3D
// 2do parámetro: indica el archivo "xml" a usarse para graficar. En este caso queda vacío "", ya que los parámetros lo pasamos por PHP.
// 3er parámetro: $strXML, es el archivo parámetro para el gráfico.
// 4to parámetro: "ejemplo". Es el identificador del gráfico. Puede ser cualquier nombre.
// 5to y 6to parámetro: indica ancho y alto que tendrá el gráfico.
// 7mo parámetro: "false". Trata del "modo debug". No es im,portante en nuestro caso, pero pueden ponerlo a true ara probarlo.
echo renderChartHTML("Column3D.swf", "", $strXML, "Estadisticas", 700, 400, false);
?>
                 
                        
                     
                        </p>
                    </div>				
					<br class="clear" />
				</div>
				<div id="sidebar">
					<h3>
                    
                  </h3>
					<div class="form">
					  <p><?php 
echo $_SESSION['usuario'];
开发者ID:alexgm5555,项目名称:proyecto-siz-ingenieria-de-software-ii,代码行数:31,代码来源:Estadisticas.php

示例7: renderChartHTML

	FusionCharts Free - Simple Column 3D Chart
	</TITLE>
	<style type="text/css">
	<!--
	body {
		font-family: Arial, Helvetica, sans-serif;
		font-size: 12px;
	}
	-->
	</style>
</HEAD>
<BODY>

<CENTER>
<h2><a href="http://www.fusioncharts.com" target="_blank">FusionCharts Free</a> Examples</h2>
<h4>Basic example using pre-built Data.xml</h4>
<?php 
//This page demonstrates the ease of generating charts using FusionCharts.
//For this chart, we've used a pre-defined Data.xml (contained in /Data/ folder)
//Ideally, you would NOT use a physical data file. Instead you'll have
//your own PHP scripts virtually relay the XML data document. Such examples are also present.
//For a head-start, we've kept this example very simple.
//Create the chart - Column 3D Chart with data from Data/Data.xml
echo renderChartHTML("../../FusionCharts/FCF_Column3D.swf", "Data/Data.xml", "", "myFirst", 600, 300, false);
?>
<BR><BR>
<a href='../NoChart.html' target="_blank">Unable to see the chart above?</a>
<H5 ><a href='../default.htm'>&laquo; Back to list of examples</a></h5>
</CENTER>
</BODY>
</HTML>
开发者ID:weichun713,项目名称:wci,代码行数:31,代码来源:BasicChart.php

示例8: renderChartHTML

?>
" style="font-size:12px;">面积图展示</a>


</div>
</div>
<div style="position:absolute; height:90%; width:100%;overflow:auto"> 
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0" class="small" style="margin-top:6px;">
  <tr>
    <td class="Big" style="font-size:12px;"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3">项目<?php 
echo $title;
?>
统计</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-size:12px; float:right; margin-right:50px;">
	</span>
    </td>
  </tr>
</table>

<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td align="center" class="Big" style="font-size:12px;">
	<?php 
echo renderChartHTML("template/fusioncharts/" . $flashtype . ".swf", "", $strtype, "", $fw, $fh, false);
?>
    </td>
  </tr>
</table>
</div>
</body>
</html>
开发者ID:haogm123,项目名称:ydoa,代码行数:30,代码来源:list.php

示例9: sum

<?php

require_once "../includes/FusionCharts.php";
require_once '../includes/connect.php';
$sql = "select coa.account_name Employee, sum(vd.debit_amount-vd.credit_amount) Salary \n" . "from voucher_detail vd \n" . "inner join chart_of_account coa on coa.account_code = vd.account_code\n" . "where coa.company_ref_id = {$_SESSION['company_id']}\n" . "and coa.parent_account_code = 5001\n" . "group by coa.account_name\n" . "order by 2 desc\n" . "limit 0, 5\n";
$result = mysql_query($sql) or die("Couldn t execute query." . mysql_error());
$rows = array();
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
    $rows[] = $row;
}
$strXML = "";
$strXML .= "<chart palette='2' animation='1' formatNumberScale='0' numberPrefix='Rs' pieSliceDepth='30' startingAngle='125' bgColor='f7f2ea' borderColor='f7f2ea' borderthickness='0' bgAlpha='0'>";
$i = 0;
foreach ($rows as $row) {
    $isSliced = "isSliced='0'";
    if ($i < 3) {
        $isSliced = "isSliced='1'";
    }
    $strXML .= "<set label='{$row['0']}' value='{$row['1']}' {$isSliced} />";
    $i++;
}
$strXML .= "</chart>";
echo renderChartHTML("../swf/Pie3D.swf", "", $strXML, "chart5", 800, 270, false, false, "true");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:23,代码来源:chart5.php

示例10: renderChartHTML

<div class="row">
    <div class="box col-md-12" id="head">
        <div class="box-content">
        <div style="float:left; width:50%; ">
<?php 
include "FusionCharts.php";
include "Functions.php";
$strXML = "";
$strXML = "<chart caption = 'Habilidades' bgColor='' baseFontSize='12' showValues='1' xAxisName='Anios' >";
for ($i = 0; $i < 7; $i++) {
    $strXML .= "<set label = '" . $info[$i]->name . "' value ='" . $info[$i]->visits_number . "' />";
}
$strXML .= "</chart>";
echo renderChartHTML("Pie3D.swf", "", $strXML, "Habilidades", 600, 400, false);
?>
</div>
<div style="float:left; width:50%; ">
<?php 
$strXML = "";
$strXML = "<chart caption = 'Tecnologias' bgColor='' baseFontSize='12' showValues='1' xAxisName='Anios' >";
for ($i = 7; $i < 16; $i++) {
    $strXML .= "<set label = '" . $info[$i]->name . "' value ='" . $info[$i]->visits_number . "' />";
}
$strXML .= "</chart>";
echo renderChartHTML("Pie3D.swf", "", $strXML, "Tecnologías", 500, 400, false);
?>
  

</div>
        </div>
开发者ID:AndrewJey,项目名称:Proyecto-1-web-rsa,代码行数:30,代码来源:dashboard.php

示例11: BranchValue

    case "branchvalue":
        $name = BranchValue();
        $table = tableBranchValue();
        $caption = "Inventory total Value by Branch";
        $xaxis = "Branch";
        $yaxis = "Total Value";
        $graphType = "FCF_Column2D";
        $td = " <td><strong>Category </strong></td>\r\n    <td><strong>Total Value</strong></td>";
        break;
    case 2:
        echo "i equals 2";
        break;
}
//end of if
$strXMLData = "<graph caption='{$caption}' subcaption='' xAxisName='{$xaxis}' yAxisName='{$yaxis}' numberPrefix='' showNames='1'  showValue='1' decimalPrecision='2'>" . $name . "</graph>";
echo renderChartHTML("charts/{$graphType}.swf", "", $strXMLData, "myNext", 600, 300);
?>

<h1><font color="#CCCCCC" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>
    <?php 
echo $caption;
?>
    </strong></font></h1>
      
<table width="300" border="2" cellspacing="0" cellpadding="0">
  
  <tr bordercolor="#000000" align="center" bordercolordark="#000000"> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
    <?php 
echo $td;
?>
   
开发者ID:JhunCabas,项目名称:material-management,代码行数:30,代码来源:ViewChart.php

示例12: extract

$strXML .= "\t\t<category Name='Oct' />";
$strXML .= "\t\t<category Name='Nov' />";
$strXML .= "\t\t<category Name='Dec' />";
$strXML .= "\t</categories>";
for ($j = 0; $j < 3; $j++) {
    $sql = "select extract( Month from sm.sale_date),\n" . " sum(sd.sales_qty*sd.sales_rate) Sale_Amount\n" . "from sales_master sm\n" . "inner join sales_detail sd on sm.sale_master_id = sd.sale_master_id\n" . "where sm.company_ref_id = {$_SESSION['company_id']}\n" . "and extract( Year from sm.sale_date) = '" . (date("Y") - $j) . "'\n" . "group by extract( Month from sm.sale_date)\n" . "order by 1 asc";
    $result = mysql_query($sql) or die("Couldn t execute query." . mysql_error());
    $rows = array();
    for ($i = 1; $i <= 12; $i++) {
        $rows["{$i}"] = 0;
    }
    while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
        $rows["{$row['0']}"] = $row[1];
    }
    $strXML .= "\t<dataset seriesName='Year " . (date("Y") - $j) . "'>";
    for ($i = 1; $i <= 12; $i++) {
        $strXML .= "\t\t<set value='" . $rows["{$i}"] . "' />";
    }
    $strXML .= "\t</dataset>";
}
$strXML .= "\t<styles>";
$strXML .= "\t\t<definition>";
$strXML .= "\t\t\t<style name='myCaptionFont' type='font' size='14' bold='1' />";
$strXML .= "\t\t</definition>";
$strXML .= "\t\t<application>";
$strXML .= "\t\t\t<apply toObject='Caption' styles='myCaptionFont' />";
$strXML .= "\t\t</application>";
$strXML .= "\t</styles>";
$strXML .= "</chart>";
echo renderChartHTML("../swf/MSLine.swf", "", $strXML, "chart2", 400, 270, false, false, "true");
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:30,代码来源:chart2.php

示例13: renderChartHTML

    $strXML = "";
    $strXML = $strXML . "<graph caption='Classes and Submitted Money percentages' xAxisName='Classes' yAxisName='Percentage' decimalPrecision='2' formatNumberScale='12'>";
    for ($i = 0; $i < $j; $i++) {
        if ($k == 8) {
            $k = 0;
        }
        if ($categor_money[$i] == 0) {
            $perc = 0.0;
        } else {
            $perc = $categor_money[$i] / $total * 100;
        }
        $strXML .= "<set name='{$categor[$i]}' value='{$perc}' color='{$Color_array[$k]}' />";
        $k++;
    }
    $strXML .= "</graph>";
    echo renderChartHTML("FCF_Column3D.swf", "", $strXML, "myNext", 950, 450);
    mysql_close($connection);
}
if ($batch == "p1" || $batch == "p2" || $batch == "select") {
    echo '
		<script language="javascript">
			$("#load_n").hide();
		</script>';
} else {
    if ($batch == "e1") {
        echo '
		<script language="javascript">
			$("#freshers").show();
		</script>';
    } else {
        echo '
开发者ID:vooratarun,项目名称:helpinghands,代码行数:31,代码来源:index_3.php

示例14: date

    $mm = date('m', strtotime(date($y . '-' . $m . '-' . '01', strtotime($date)) . $i . " month"));
    $st = $Ym . '-' . $mm . '-' . '01';
    $end = $Ym . '-' . $mm . '-' . '31';
    $tick_mont_o = "SELECT nTicketId FROM sptbl_tickets WHERE dLastAttempted>='" . $st . "' AND dLastAttempted<='" . $end . "' AND vDelStatus = 0";
    $tick_count = mysql_query($tick_mont_o);
    $count = mysql_num_rows($tick_count);
    // $arrData1[1][$i+1] = $count;
    $strXML1 .= " <set value='" . $count . "' />";
}
$strXML1 .= "  </dataset>\r\n\r\n\r\n</chart>";
//$graphObj3 = new graph(2,986,170);
//$graphObj3->setChartParams("Ticket Status for period of ".date('d/m/Y',strtotime($first_day_this_month))."-".date('d/m/Y',strtotime($last_day_this_month)),'','',0,'');
//$graphObj3->addChartData($arrData1,$arrCatName);
//$graphObj3->renderChart();
//Create the chart - Column 3D Chart with data from strXML variable using dataStr method
echo renderChartHTML("../fusionchart/FusionCharts/MSLine.swf", "", $strXML1, "myNext", '987', '250', true, true);
?>

<div class="clear"></div>
    </div>
</div>
<div class="comm_spacediv">&nbsp;</div>
<!--<div class="DB_container_3">
  <!--  <h2><?php 
echo TEXT_LICENCE_INFORMATION;
?>
</h2>-->
    <!--<div class="DB_container_content">
       
      
	                                            
开发者ID:ACSAUruguay,项目名称:helpdesk,代码行数:28,代码来源:adminmain.php

示例15: getPicklistChartHTML_Pie2D

 function getPicklistChartHTML_Pie2D($picklistinf)
 {
     list($chartxml, $width, $height) = $this->getChartParams($picklistinf);
     $return = renderChartHTML("include/fusioncharts/Charts/FCF_Pie2D.swf", "", $chartxml, "reportChart", $width, $height);
     return $return;
 }
开发者ID:honj51,项目名称:taobaocrm,代码行数:6,代码来源:ListViewReport.php


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