bzr branch
http://darksoft.org/webbzr/adei/trunk
114
by Suren A. Chilingaryan
Massive rewrite of DRAW (unfinished): multiple groups and axis |
1 |
<?php
|
2 |
include($JPGRAPH_PATH . "/jpgraph.php"); |
|
3 |
include($JPGRAPH_PATH . "/jpgraph_line.php"); |
|
327
by Suren A. Chilingaryan
Basic support for logarithmic axes |
4 |
include($JPGRAPH_PATH . "/jpgraph_log.php"); |
253
by Suren A. Chilingaryan
Initial support of secondary views |
5 |
include($JPGRAPH_PATH . "/jpgraph_scatter.php"); |
114
by Suren A. Chilingaryan
Massive rewrite of DRAW (unfinished): multiple groups and axis |
6 |
include($JPGRAPH_PATH . "/jpgraph_date.php"); |
7 |
include($JPGRAPH_PATH . "/jpgraph_canvas.php"); |
|
8 |
include($JPGRAPH_PATH . "/jpgraph_canvtools.php"); |
|
311
by Suren A. Chilingaryan
Histogram view (based on the code by Hovhannes) |
9 |
include($JPGRAPH_PATH . "/jpgraph_bar.php"); |
10 |
#include($JPGRAPH_PATH . "/jpgraph_regstat.php");
|
|
11 |
||
173
by Suren A. Chilingaryan
Support for jpgraph3 |
12 |
if (method_exists(JpGraphError, "Install")) { |
174
by Suren A. Chilingaryan
Fix positions of axis labels if jpgraph3 is used |
13 |
$GLOBALS['JPGRAPH_VERSION'] = 2; |
14 |
||
173
by Suren A. Chilingaryan
Support for jpgraph3 |
15 |
class JpGraphErrObjectADEIException extends JpGraphErrObject { |
16 |
function Raise($aMsg,$aHalt=true) { |
|
17 |
$num = ADEIException::PLOTTER_EXCEPTION; |
|
18 |
if (preg_match("/to\s+small\s+plot\s+area/i", $aMsg)) $num = ADEIException::PLOTTER_WINDOW_TOO_SMALL; |
|
19 |
||
20 |
throw new ADEIException(translate("JpGraph Exception: %s", $aMsg), $num); |
|
21 |
}
|
|
22 |
}
|
|
23 |
||
24 |
JpGraphError::Install("JpGraphErrObjectADEIException"); |
|
25 |
} else { |
|
174
by Suren A. Chilingaryan
Fix positions of axis labels if jpgraph3 is used |
26 |
$GLOBALS['JPGRAPH_VERSION'] = 3; |
27 |
||
173
by Suren A. Chilingaryan
Support for jpgraph3 |
28 |
JpGraphError::SetImageFlag(false); |
29 |
/*
|
|
30 |
This is actually is not needed any more, and exceptions should be caught
|
|
31 |
by try blocks, I suppose.
|
|
32 |
|
|
33 |
class JpGraphADEIException extends JpGraphException {
|
|
34 |
static public function defaultHandler($aMsg,$aHalt=true) {
|
|
35 |
$num = ADEIException::PLOTTER_EXCEPTION;
|
|
36 |
if (preg_match("/to\s+small\s+plot\s+area/i", $aMsg)) $num = ADEIException::PLOTTER_WINDOW_TOO_SMALL;
|
|
37 |
||
38 |
throw new ADEIException(translate("JpGraph Exception: %s", $aMsg), $num);
|
|
39 |
}
|
|
40 |
}
|
|
41 |
||
42 |
that would cause problems
|
|
43 |
set_exception_handler(array('JpGraphADEIException', 'defaultHandler'));
|
|
44 |
*/
|
|
114
by Suren A. Chilingaryan
Massive rewrite of DRAW (unfinished): multiple groups and axis |
45 |
}
|
46 |
||
47 |
?>
|