summaryrefslogtreecommitdiff
path: root/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authornoz (OpenERP) <noz@tinyerp.com>2011-07-13 15:02:09 +0530
committernoz (OpenERP) <noz@tinyerp.com>2011-07-13 15:02:09 +0530
commitbcccef82d08ce5ecc626fa6a47f2d13f854bf176 (patch)
treeb041d9716df0a55e283c3feee5c327c3cd8015f3 /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent59bb0fd4e637cd4100e53d24df184ad5c53ed86b (diff)
parent97966e8effa47972106d7f016532d80b64f96f99 (diff)
[Merge] Merged with main branch.
bzr revid: noz@tinyerp.com-20110713093209-3f2njjjhp0cgd5rj
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