summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2011-09-14 11:07:46 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2011-09-14 11:07:46 +0530
commitb6076c3cc3ca5141349b99821268b8fd5e148b77 (patch)
treebb875d3ef5127cf5b8c35de6475de14e5477dbbd /addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent243e1bdb0079ea9f214696ead8228d464ecb2cfc (diff)
parentc7c2b5846d3775780bbaa9a84a93ad755bdb8756 (diff)
[Merge] upto revno 1024.
bzr revid: vme@tinyerp.com-20110914053746-ri6d5s341mm6tc7n
Diffstat (limited to 'addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php')
-rw-r--r--addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php b/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
new file mode 100644
index 00000000000..ac8f5116a9d
--- /dev/null
+++ b/addons/web_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