$serie2->addPoint(new Point("Apr {$year}", $ro->getAnnualDiscount_opd("Apr", $year))); $serie2->addPoint(new Point("May {$year}", $ro->getAnnualDiscount_opd("May", $year))); $serie2->addPoint(new Point("Jun {$year}", $ro->getAnnualDiscount_opd("Jun", $year))); $serie2->addPoint(new Point("Jul {$year}", $ro->getAnnualDiscount_opd("Jul", $year))); $serie2->addPoint(new Point("Aug {$year}", $ro->getAnnualDiscount_opd("Aug", $year))); $serie2->addPoint(new Point("Sep {$year}", $ro->getAnnualDiscount_opd("Sep", $year))); $serie2->addPoint(new Point("Oct {$year}", $ro->getAnnualDiscount_opd("Oct", $year))); $serie2->addPoint(new Point("Nov {$year}", $ro->getAnnualDiscount_opd("Nov", $year))); $serie2->addPoint(new Point("Dec {$year}", $ro->getAnnualDiscount_opd("Dec", $year))); $dataSet = new XYSeriesDataSet(); $dataSet->addSerie("IPD", $serie1); $dataSet->addSerie("OPD", $serie2); $chart->setDataSet($dataSet); $chart->setTitle("Discount Given from {$year}"); $chart->getPlot()->setGraphCaptionRatio(0.62); $chart->render("../../../COCONUT/graphicalReport/chartList/annualDiscount.png"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Discount Given from <?php echo $year; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> </head> <body> <img alt="Line chart" src="/COCONUT/graphicalReport/chartList/annualDiscount.png" style="border: 1px solid gray;"/> </body> </html>
$serie2->addPoint(new Point("Jan {$year}", $ro->getPHICReceivablesAnnual_package("Jan", $year) / 1000)); $serie2->addPoint(new Point("Feb {$year}", $ro->getPHICReceivablesAnnual_package("Feb", $year) / 1000)); $serie2->addPoint(new Point("Mar {$year}", $ro->getPHICReceivablesAnnual_package("Mar", $year) / 1000)); $serie2->addPoint(new Point("Apr {$year}", $ro->getPHICReceivablesAnnual_package("Apr", $year) / 1000)); $serie2->addPoint(new Point("May {$year}", $ro->getPHICReceivablesAnnual_package("May", $year) / 1000)); $serie2->addPoint(new Point("Jun {$year}", $ro->getPHICReceivablesAnnual_package("Jun", $year) / 1000)); $serie2->addPoint(new Point("Jul {$year}", $ro->getPHICReceivablesAnnual_package("Jul", $year) / 1000)); $serie2->addPoint(new Point("Aug {$year}", $ro->getPHICReceivablesAnnual_package("Aug", $year) / 1000)); $serie2->addPoint(new Point("Sep {$year}", $ro->getPHICReceivablesAnnual_package("Sep", $year) / 1000)); $serie2->addPoint(new Point("Oct {$year}", $ro->getPHICReceivablesAnnual_package("Oct", $year) / 1000)); $serie2->addPoint(new Point("Nov {$year}", $ro->getPHICReceivablesAnnual_package("Nov", $year) / 1000)); $serie2->addPoint(new Point("Dec {$year}", $ro->getPHICReceivablesAnnual_package("Dec", $year) / 1000)); $dataSet = new XYSeriesDataSet(); $dataSet->addSerie("PhilHealth Non-Package", $serie1); $dataSet->addSerie("PhilHealth Package", $serie2); $chart->setDataSet($dataSet); $chart->setTitle("PhilHealth Receivables for {$year}"); $chart->getPlot()->setGraphCaptionRatio(0.62); $chart->render("../../../COCONUT/graphicalReport/chartList/monthlyRegistrationBreakdown.png"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Libchart line demonstration</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> </head> <body> <img alt="Line chart" src="/COCONUT/graphicalReport/chartList/monthlyRegistrationBreakdown.png" style="border: 1px solid gray;"/> </body> </html>
$serie1 = new XYDataSet(); $serie1->addPoint(new Point("Jan {$year}", $ro->getAnnualExpenses("01", $year))); $serie1->addPoint(new Point("Feb {$year}", $ro->getAnnualExpenses("02", $year))); $serie1->addPoint(new Point("Mar {$year}", $ro->getAnnualExpenses("03", $year))); $serie1->addPoint(new Point("Apr {$year}", $ro->getAnnualExpenses("04", $year))); $serie1->addPoint(new Point("May {$year}", $ro->getAnnualExpenses("05", $year))); $serie1->addPoint(new Point("Jun {$year}", $ro->getAnnualExpenses("06", $year))); $serie1->addPoint(new Point("Jul {$year}", $ro->getAnnualExpenses("07", $year))); $serie1->addPoint(new Point("Aug {$year}", $ro->getAnnualExpenses("08", $year))); $serie1->addPoint(new Point("Sep {$year}", $ro->getAnnualExpenses("09", $year))); $serie1->addPoint(new Point("Oct {$year}", $ro->getAnnualExpenses("10", $year))); $serie1->addPoint(new Point("Nov {$year}", $ro->getAnnualExpenses("11", $year))); $serie1->addPoint(new Point("Dec {$year}", $ro->getAnnualExpenses("12", $year))); $dataSet = new XYSeriesDataSet(); $dataSet->addSerie("Expenses", $serie1); $chart->setDataSet($dataSet); $chart->setTitle("Expenses for {$year}"); $chart->getPlot()->setGraphCaptionRatio(0.62); $chart->render("../../../COCONUT/graphicalReport/chartList/annualExpenses.png"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Libchart line demonstration</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" /> </head> <body> <img alt="Line chart" src="/COCONUT/graphicalReport/chartList/annualExpenses.png" style="border: 1px solid gray;"/> </body> </html>