📄 cakeimg.php
字号:
<?php
include( "inc/conn.php" );
include( "inc/jpgraph/jpgraph.php" );
include( "inc/jpgraph/jpgraph_pie.php" );
include( "inc/jpgraph/jpgraph_pie3d.php" );
$labLst = explode( ",", substr( $ARRAY_FIELD1, 0, strlen( $ARRAY_FIELD1 ) - 1 ) );
$datLst = explode( ",", substr( $GRAPHVALUES1, 0, strlen( $GRAPHVALUES1 ) - 1 ) );
( 460, 350, "auto" );
$graph = new PieGraph( );
$graph->title->Set( $MODULENAME );
$graph->title->SetFont( FF_SIMSUN, FS_BOLD, 18 );
$graph->title->SetColor( "darkblue" );
$graph->legend->SetFont( FF_SIMSUN, FS_NORMAL, 10 );
$graph->legend->Pos( 0.02, 0.01 );
( $datLst );
$p1 = new PiePlot3d( );
$p1->SetTheme( "td" );
$p1->SetCenter( 0.5 );
$p1->SetAngle( 35 );
$p1->SetLabelType( PIE_VALUE_ADJPER );
$p1->value->SetFont( FF_SIMSUN, FS_NORMAL, 10 );
$p1->SetLegends( $labLst );
$graph->Add( $p1 );
$graph->Stroke( );
echo "\r\n\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -