summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorKunal Chavda (OpenERP) <kch@tinyerp.com>2011-09-06 18:24:40 +0530
committerKunal Chavda (OpenERP) <kch@tinyerp.com>2011-09-06 18:24:40 +0530
commita9446c53f96bccaf3f8b3a759455ccb65c45efd4 (patch)
tree0ad3e48ab90862c6387dcb464d2728fddf0bbcf7 /addons/web_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent1127d2b3e33e012a681b93aaf506af0c698a6ad0 (diff)
parentfd6b4fde142ef971de1eb3daa72ef5a38e8a693c (diff)
[MERGE]Merge with trunk upto revision no 931.
bzr revid: kch@tinyerp.com-20110906125440-turixz49exf0po30
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