summaryrefslogtreecommitdiff
path: root/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-08-01 11:26:17 +0200
committerFabien Meghazi <fme@openerp.com>2011-08-01 11:26:17 +0200
commita291c46b27bedda79273331ca601f528bf8d0bd2 (patch)
treec64f50b40269dca17c6d3997d6c5c7c116743fd5 /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent26c20c4f23724563bc56021fd661671ad35421f6 (diff)
parentc8e7b43acbc3cd5c1dc40ceffe567b12a072cf40 (diff)
[MERGE] Merged with trunk
bzr revid: fme@openerp.com-20110801092617-f4vcc8dhx31n5ot3
Diffstat (limited to 'addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php')
-rw-r--r--addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
new file mode 100644
index 00000000000..ac8f5116a9d
--- /dev/null
+++ b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
@@ -0,0 +1,16 @@
+<?php
+
+$str = "<data>";
+
+for ($i=1; $i <= 100; $i++) {
+ $sales = rand(100,1000);
+ $year = rand(1996,2009);
+ $company = "Company ".rand(1,3);
+ $str.="<item id='{$i}' sales='{$sales}' year='{$year}' company='{$company}'></item>";
+}
+
+$str .= "</data>";
+
+file_put_contents("stat.xml",$str);
+
+?> \ No newline at end of file