summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pts-core/functions/pts-functions_tests.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index 61ec7bc..3dd5cd5 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -123,6 +123,12 @@ function pts_save_result($save_to = null, $save_results = null)
$t = new pts_BarGraph($results_name[$i], $results_attributes[$i], $results_scale[$i]);
}
+ if(getenv("REVERSE_GRAPH_PLOTTING") != false)
+ {
+ $results_identifiers[$i] = array_reverse($results_identifiers[$i]);
+ $results_values[$i] = array_reverse($results_values[$i]);
+ }
+
$t->loadGraphIdentifiers($results_identifiers[$i]);
$t->loadGraphValues($results_values[$i]);
$t->loadGraphRawValues($results_rawvalues[$i]);