summaryrefslogtreecommitdiff
path: root/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-07-15 12:10:15 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-07-15 12:10:15 +0200
commit22f73d68e6f06016aa005c82c449a78d80eaf44d (patch)
tree84498f5c1cf649018204db6c9f31c3e985cdcec4 /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
parentec4ae5e6bb60dfac864b4fcd7c1639104f4d0583 (diff)
parent47932748d87a3e52a2b4bb47405de62e6034d257 (diff)
[merge]
bzr revid: nicolas.vanhoren@openerp.com-20110715101015-ltj91jb9ux4wjty2
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