示例#1
0
 * 
 * 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 line chart demonstration.
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new revenueLineChart("1500", "500");
$ro = new database1();
$serie1 = new XYDataSet();
$serie1->addPoint(new Point("Jan {$year}", $ro->getAnnualDiscount_ipd("Jan", $year)));
$serie1->addPoint(new Point("Feb {$year}", $ro->getAnnualDiscount_ipd("Feb", $year)));
$serie1->addPoint(new Point("Mar {$year}", $ro->getAnnualDiscount_ipd("Mar", $year)));
$serie1->addPoint(new Point("Apr {$year}", $ro->getAnnualDiscount_ipd("Apr", $year)));
$serie1->addPoint(new Point("May {$year}", $ro->getAnnualDiscount_ipd("May", $year)));
$serie1->addPoint(new Point("Jun {$year}", $ro->getAnnualDiscount_ipd("Jun", $year)));
$serie1->addPoint(new Point("Jul {$year}", $ro->getAnnualDiscount_ipd("Jul", $year)));
$serie1->addPoint(new Point("Aug {$year}", $ro->getAnnualDiscount_ipd("Aug", $year)));
$serie1->addPoint(new Point("Sep {$year}", $ro->getAnnualDiscount_ipd("Sep", $year)));
$serie1->addPoint(new Point("Oct {$year}", $ro->getAnnualDiscount_ipd("Oct", $year)));
$serie1->addPoint(new Point("Nov {$year}", $ro->getAnnualDiscount_ipd("Nov", $year)));
$serie1->addPoint(new Point("Dec {$year}", $ro->getAnnualDiscount_ipd("Dec", $year)));
$serie2 = new XYDataSet();
 * 
 * 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 line chart demonstration.
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new revenueLineChart("1500", "500");
$ro = new database1();
$serie1 = new XYDataSet();
$serie1->addPoint(new Point("Jan {$year}", $ro->getPHICReceivablesAnnual("Jan", $year) / 1000));
$serie1->addPoint(new Point("Feb {$year}", $ro->getPHICReceivablesAnnual("Feb", $year) / 1000));
$serie1->addPoint(new Point("Mar {$year}", $ro->getPHICReceivablesAnnual("Mar", $year) / 1000));
$serie1->addPoint(new Point("Apr {$year}", $ro->getPHICReceivablesAnnual("Apr", $year) / 1000));
$serie1->addPoint(new Point("May {$year}", $ro->getPHICReceivablesAnnual("May", $year) / 1000));
$serie1->addPoint(new Point("Jun {$year}", $ro->getPHICReceivablesAnnual("Jun", $year) / 1000));
$serie1->addPoint(new Point("Jul {$year}", $ro->getPHICReceivablesAnnual("Jul", $year) / 1000));
$serie1->addPoint(new Point("Aug {$year}", $ro->getPHICReceivablesAnnual("Aug", $year) / 1000));
$serie1->addPoint(new Point("Sep {$year}", $ro->getPHICReceivablesAnnual("Sep", $year) / 1000));
$serie1->addPoint(new Point("Oct {$year}", $ro->getPHICReceivablesAnnual("Oct", $year) / 1000));
$serie1->addPoint(new Point("Nov {$year}", $ro->getPHICReceivablesAnnual("Nov", $year) / 1000));
$serie1->addPoint(new Point("Dec {$year}", $ro->getPHICReceivablesAnnual("Dec", $year) / 1000));
$serie2 = new XYDataSet();
示例#3
0
 * 
 * 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 line chart demonstration.
 *
 */
include "../../../COCONUT/libchart/libchart/classes/libchart.php";
$chart = new revenueLineChart("1500", "500");
$ro = new database1();
$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();