More little fixups for robustness

This commit is contained in:
moodler
2002-12-30 05:13:43 +00:00
parent c04c41c7d2
commit 47f1da80d0
11 changed files with 143 additions and 120 deletions
+6
View File
@@ -762,6 +762,12 @@ function init_x_ticks() {
//print "xStep: $xStep <BR>";
// if numeric x axis then calculate x coords for each data point. this is seperate from x ticks.
$gridX = $gridLeft;
if (empty($this->calculated['x_axis']['factor'])) {
$this->calculated['x_axis']['factor'] = 0;
}
if (empty($this->calculated['x_axis']['min'])) {
$this->calculated['x_axis']['min'] = 0;
}
$factor = $this->calculated['x_axis']['factor'];
$min = $this->calculated['x_axis']['min'];