summaryrefslogtreecommitdiff
path: root/addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
diff options
context:
space:
mode:
authorKunal Chavda (OpenERP) <kch@tinyerp.com>2011-04-08 14:20:05 +0530
committerKunal Chavda (OpenERP) <kch@tinyerp.com>2011-04-08 14:20:05 +0530
commit20c75c45d8888e44b9b58b8ba67c6b5b2e8e7876 (patch)
tree6a3f8cbf50a611a2939f215fcf94133a66ba51fb /addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php
parent8f9edb9a102af7cb401c59c21deff928e891c9de (diff)
[IMP]Initialy show bar chart with data.
bzr revid: kch@tinyerp.com-20110408085005-hv9jv2wcfopnxrgm
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