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:11:51 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-07-15 12:11:51 +0200
commitc15ddcd5f942a6c21b5f3a6201e771d1194f72e7 (patch)
treebe14a5418372de5f33879dede769fd988f91eaac /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent9c418f5e29b92ec057758e284827d6760a33ad5b (diff)
parentad9a41c867cff048527626b3e1608987f2f1aaa2 (diff)
[merge]
bzr revid: nicolas.vanhoren@openerp.com-20110715101151-fshuut4ujslbzxvn
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