{@ // Dataset definition $DataSet = new pData; // Initialise the graph $default_width = 300; $default_height = 200; $width = $args->width; $height = $args->height; $graph_width = $width-$default_width; $graph_height = $height-$default_height; $Test = new pChart(($graph_width+300),($graph_height+200)); $color = explode(",",$args->color); $i=0; $z=0; } {@ $chart->ptraffic[$i][] = 0; } {@ $ptraffic = $chart->ptraffic[$i] } {@ $Test->Palette[$z]["R"] = hexdec(substr($color[$z],0,2)); $Test->Palette[$z]["G"] = hexdec(substr($color[$z],2,2)); $Test->Palette[$z]["B"] = hexdec(substr($color[$z],4,2)); $z++ } {@ $mmid = $oMib->get("mmid"); $DataSet->AddPoint(array($chart->ptraffic[$i]),$mmid); $DataSet->SetSerieName($mmid,$mmid); } {@ $i++; } {@ $chart->psnmpdate[] = 0; } {@ $DataSet->AddAllSeries(); $DataSet->AddPoint(array($chart->psnmpdate),"x"); $DataSet->SetAbsciseLabelSerie("x"); $DataSet->SetYAxisUnit($widget_info->size); $Test->drawFilledRoundedRectangle(7,7,($graph_width+293),($graph_height+193),5,240,240,240); $Test->drawRoundedRectangle(5,5,($graph_width+295),($graph_height+195),5,230,230,230); // Draw the pie chart $Test->setFontProperties($tpl_path."../../pChart/Fonts/tahoma.ttf",8); $Test->drawBasicPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),120,120,70,PIE_PERCENTAGE,255,255,218); $Test->drawPieLegend(($graph_width+200),30,$DataSet->GetData(),$DataSet->GetDataDescription(),255,255,255); $Test->drawTitle(0,22,$args->title,50,50,50,$args->width); $Test->Render($tpl_path."images/pChart/".$args->module_srl."_".$args->id.".png"); }

{@ $mmid = $oMib->get("mmid"); $oMax = $oMib->getNmsSnmpMax($args->statistics,$mmid,$args->date); } {$oMib->get("mib_title")} - 최대값 : {$oMib->getSizeFormat($oMax->max,true,$widget_info->size)}, 최소값 : {$oMib->getSizeFormat($oMax->min,true,$widget_info->size)}