* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ /** * Multiple horizontal bar chart demonstration. * */ include "../../../COCONUT/libchart/libchart/classes/libchart.php"; $chart = new revenueBarChart(3500, 2450); $ro = new database1(); $serie1 = new XYDataSet(); $serie1->addPoint(new Point("{$month} 31", $ro->getPxRevenueDaily_opd($month, "31", $year) / 1000)); $serie1->addPoint(new Point("{$month} 30", $ro->getPxRevenueDaily_opd($month, "30", $year) / 1000)); $serie1->addPoint(new Point("{$month} 29", $ro->getPxRevenueDaily_opd($month, "29", $year) / 1000)); $serie1->addPoint(new Point("{$month} 28", $ro->getPxRevenueDaily_opd($month, "28", $year) / 1000)); $serie1->addPoint(new Point("{$month} 27", $ro->getPxRevenueDaily_opd($month, "27", $year) / 1000)); $serie1->addPoint(new Point("{$month} 26", $ro->getPxRevenueDaily_opd($month, "26", $year) / 1000)); $serie1->addPoint(new Point("{$month} 25", $ro->getPxRevenueDaily_opd($month, "25", $year) / 1000)); $serie1->addPoint(new Point("{$month} 24", $ro->getPxRevenueDaily_opd($month, "24", $year) / 1000)); $serie1->addPoint(new Point("{$month} 23", $ro->getPxRevenueDaily_opd($month, "23", $year) / 1000)); $serie1->addPoint(new Point("{$month} 22", $ro->getPxRevenueDaily_opd($month, "22", $year) / 1000)); $serie1->addPoint(new Point("{$month} 21", $ro->getPxRevenueDaily_opd($month, "21", $year) / 1000)); $serie1->addPoint(new Point("{$month} 20", $ro->getPxRevenueDaily_opd($month, "20", $year) / 1000)); $serie1->addPoint(new Point("{$month} 19", $ro->getPxRevenueDaily_opd($month, "19", $year) / 1000));
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ /** * Multiple horizontal bar chart demonstration. * */ include "../../../COCONUT/libchart/libchart/classes/libchart.php"; $chart = new revenueBarChart(3500, 2450); $ro = new database1(); $serie1 = new XYDataSet(); $serie1->addPoint(new Point("{$month} 31", $ro->getMonthlyDiscount_ipd($month, "31", $year) / 1000)); $serie1->addPoint(new Point("{$month} 30", $ro->getMonthlyDiscount_ipd($month, "30", $year) / 1000)); $serie1->addPoint(new Point("{$month} 29", $ro->getMonthlyDiscount_ipd($month, "29", $year) / 1000)); $serie1->addPoint(new Point("{$month} 28", $ro->getMonthlyDiscount_ipd($month, "28", $year) / 1000)); $serie1->addPoint(new Point("{$month} 27", $ro->getMonthlyDiscount_ipd($month, "27", $year) / 1000)); $serie1->addPoint(new Point("{$month} 26", $ro->getMonthlyDiscount_ipd($month, "26", $year) / 1000)); $serie1->addPoint(new Point("{$month} 25", $ro->getMonthlyDiscount_ipd($month, "25", $year) / 1000)); $serie1->addPoint(new Point("{$month} 24", $ro->getMonthlyDiscount_ipd($month, "24", $year) / 1000)); $serie1->addPoint(new Point("{$month} 23", $ro->getMonthlyDiscount_ipd($month, "23", $year) / 1000)); $serie1->addPoint(new Point("{$month} 22", $ro->getMonthlyDiscount_ipd($month, "22", $year) / 1000)); $serie1->addPoint(new Point("{$month} 21", $ro->getMonthlyDiscount_ipd($month, "21", $year) / 1000)); $serie1->addPoint(new Point("{$month} 20", $ro->getMonthlyDiscount_ipd($month, "20", $year) / 1000)); $serie1->addPoint(new Point("{$month} 19", $ro->getMonthlyDiscount_ipd($month, "19", $year) / 1000));
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ /** * Multiple horizontal bar chart demonstration. * */ include "../../../COCONUT/libchart/libchart/classes/libchart.php"; $chart = new revenueBarChart(4000, 1500); $ro = new database1(); $serie1 = new XYDataSet(); $serie1->addPoint(new Point("{$month} 31", number_format($ro->getBestSellingChart_ipd($month, "31", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 30", number_format($ro->getBestSellingChart_ipd($month, "30", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 29", number_format($ro->getBestSellingChart_ipd($month, "29", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 28", number_format($ro->getBestSellingChart_ipd($month, "28", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 27", number_format($ro->getBestSellingChart_ipd($month, "27", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 26", number_format($ro->getBestSellingChart_ipd($month, "26", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 25", number_format($ro->getBestSellingChart_ipd($month, "25", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 24", number_format($ro->getBestSellingChart_ipd($month, "24", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 23", number_format($ro->getBestSellingChart_ipd($month, "23", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 22", number_format($ro->getBestSellingChart_ipd($month, "22", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 21", number_format($ro->getBestSellingChart_ipd($month, "21", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 20", number_format($ro->getBestSellingChart_ipd($month, "20", $year, $description) / 1000, 2))); $serie1->addPoint(new Point("{$month} 19", number_format($ro->getBestSellingChart_ipd($month, "19", $year, $description) / 1000, 2)));
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ /** * Multiple horizontal bar chart demonstration. * */ include "../../../COCONUT/libchart/libchart/classes/libchart.php"; $chart = new revenueBarChart(3500, 2450); $ro = new database1(); $serie1 = new XYDataSet(); $serie1->addPoint(new Point("{$month} 31", $ro->getPHICReceivablesMonthly($month, "31", $year) / 1000)); $serie1->addPoint(new Point("{$month} 30", $ro->getPHICReceivablesMonthly($month, "30", $year) / 1000)); $serie1->addPoint(new Point("{$month} 29", $ro->getPHICReceivablesMonthly($month, "29", $year) / 1000)); $serie1->addPoint(new Point("{$month} 28", $ro->getPHICReceivablesMonthly($month, "28", $year) / 1000)); $serie1->addPoint(new Point("{$month} 27", $ro->getPHICReceivablesMonthly($month, "27", $year) / 1000)); $serie1->addPoint(new Point("{$month} 26", $ro->getPHICReceivablesMonthly($month, "26", $year) / 1000)); $serie1->addPoint(new Point("{$month} 25", $ro->getPHICReceivablesMonthly($month, "25", $year) / 1000)); $serie1->addPoint(new Point("{$month} 24", $ro->getPHICReceivablesMonthly($month, "24", $year) / 1000)); $serie1->addPoint(new Point("{$month} 23", $ro->getPHICReceivablesMonthly($month, "23", $year) / 1000)); $serie1->addPoint(new Point("{$month} 22", $ro->getPHICReceivablesMonthly($month, "22", $year) / 1000)); $serie1->addPoint(new Point("{$month} 21", $ro->getPHICReceivablesMonthly($month, "21", $year) / 1000)); $serie1->addPoint(new Point("{$month} 20", $ro->getPHICReceivablesMonthly($month, "20", $year) / 1000)); $serie1->addPoint(new Point("{$month} 19", $ro->getPHICReceivablesMonthly($month, "19", $year) / 1000));
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ /** * Multiple horizontal bar chart demonstration. * */ include "../../../COCONUT/libchart/libchart/classes/libchart.php"; $chart = new revenueBarChart(4000, 1500); $ro = new database1(); $serie1 = new XYDataSet(); $serie1->addPoint(new Point("{$month} 31", number_format($ro->getMonthlyExpenses($month, "31", $year), 2))); $serie1->addPoint(new Point("{$month} 30", number_format($ro->getMonthlyExpenses($month, "30", $year), 2))); $serie1->addPoint(new Point("{$month} 29", number_format($ro->getMonthlyExpenses($month, "29", $year), 2))); $serie1->addPoint(new Point("{$month} 28", number_format($ro->getMonthlyExpenses($month, "28", $year), 2))); $serie1->addPoint(new Point("{$month} 27", number_format($ro->getMonthlyExpenses($month, "27", $year), 2))); $serie1->addPoint(new Point("{$month} 26", number_format($ro->getMonthlyExpenses($month, "26", $year), 2))); $serie1->addPoint(new Point("{$month} 25", number_format($ro->getMonthlyExpenses($month, "25", $year), 2))); $serie1->addPoint(new Point("{$month} 24", number_format($ro->getMonthlyExpenses($month, "24", $year), 2))); $serie1->addPoint(new Point("{$month} 23", number_format($ro->getMonthlyExpenses($month, "23", $year), 2))); $serie1->addPoint(new Point("{$month} 22", number_format($ro->getMonthlyExpenses($month, "22", $year), 2))); $serie1->addPoint(new Point("{$month} 21", number_format($ro->getMonthlyExpenses($month, "21", $year), 2))); $serie1->addPoint(new Point("{$month} 20", number_format($ro->getMonthlyExpenses($month, "20", $year), 2))); $serie1->addPoint(new Point("{$month} 19", number_format($ro->getMonthlyExpenses($month, "19", $year), 2)));