{@ // Dataset definition $DataSet = new pData; $default_width = 600; $default_height = 230; $width = $args->width; $height = $args->height; $graph_width = $width-$default_width; $graph_height = $height-$default_height; // Initialise the graph $Test = new pChart(($graph_width+600),($graph_height+230)); $i=0; $z=0; } {@ $chart->ptraffic[$i][] = 0; } {@ $ptraffic = $chart->ptraffic[$i] } {@ $Test->Palette[$z]["R"] = hexdec(substr($chart->color[$z],0,2)); $Test->Palette[$z]["G"] = hexdec(substr($chart->color[$z],2,2)); $Test->Palette[$z]["B"] = hexdec(substr($chart->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->setFontProperties($tpl_path."../../pChart/Fonts/tahoma.ttf",8); $Test->setGraphArea(50,30,($graph_width+480),($graph_height+120)); $Test->drawFilledRoundedRectangle(7,7,($graph_width+593),($graph_height+223),5,240,240,240); $Test->drawRoundedRectangle(5,5,($graph_width+595),($graph_height+225),5,230,230,230); $Test->drawGraphArea(255,255,255,TRUE); $Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,90,2,TRUE); $Test->drawGrid(4,TRUE,230,230,230,50); // Draw the 0 line $Test->setFontProperties($tpl_path."../../pChart/Fonts/tahoma.ttf",6); $Test->drawTreshold(0,143,55,72,TRUE,TRUE); // Draw the bar graph $Test->drawBarGraph($DataSet->GetData(),$DataSet->GetDataDescription(),TRUE); // Finish the graph $Test->setFontProperties($tpl_path."../../pChart/Fonts/tahoma.ttf",8); $Test->drawLegend(($graph_width+496),30,$DataSet->GetDataDescription(),255,255,255); $Test->setFontProperties($tpl_path."../../pChart/Fonts/tahoma.ttf",10); $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)}