<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>phpChart - Error Catch</title> </head> <body> <div><span> </span><span id="info1b"></span></div> <?php ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Chart 1 Example ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $pc = new C_PhpChartX(array(), 'chart1'); $pc->set_config(array('catchErrors' => true)); $pc->draw(500, 300); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Chart 2 Example ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* $pc = new C_PhpChartX(array(),'chart2'); $pc->set_config(array('errorMessage'=>'A Plot Error has Occurred','errorBackground'=>'#fbeddf','errorBorder'=>'2px solid #aaaaaa','errorFontFamily'=>'Courier New','errorFontSize'=>'16pt')); $pc->draw(500,300); */ ?>