From 20c75c45d8888e44b9b58b8ba67c6b5b2e8e7876 Mon Sep 17 00:00:00 2001 From: "Kunal Chavda (OpenERP)" Date: Fri, 8 Apr 2011 14:20:05 +0530 Subject: [IMP]Initialy show bar chart with data. bzr revid: kch@tinyerp.com-20110408085005-hv9jv2wcfopnxrgm --- .../lib/dhtmlxGraph/samples/common/config.php | 13 ++++++ .../static/lib/dhtmlxGraph/samples/common/data.php | 16 ++++++++ .../lib/dhtmlxGraph/samples/common/sales.xml | 46 ++++++++++++++++++++++ .../static/lib/dhtmlxGraph/samples/common/stat.xml | 1 + 4 files changed, 76 insertions(+) create mode 100644 addons/base_graph/static/lib/dhtmlxGraph/samples/common/config.php create mode 100644 addons/base_graph/static/lib/dhtmlxGraph/samples/common/data.php create mode 100644 addons/base_graph/static/lib/dhtmlxGraph/samples/common/sales.xml create mode 100644 addons/base_graph/static/lib/dhtmlxGraph/samples/common/stat.xml (limited to 'addons/base_graph/static/lib/dhtmlxGraph/samples/common') diff --git a/addons/base_graph/static/lib/dhtmlxGraph/samples/common/config.php b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/config.php new file mode 100644 index 00000000000..3695ac3905a --- /dev/null +++ b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/config.php @@ -0,0 +1,13 @@ + 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 @@ +"; + +for ($i=1; $i <= 100; $i++) { + $sales = rand(100,1000); + $year = rand(1996,2009); + $company = "Company ".rand(1,3); + $str.=""; +} + +$str .= ""; + +file_put_contents("stat.xml",$str); + +?> \ No newline at end of file diff --git a/addons/base_graph/static/lib/dhtmlxGraph/samples/common/sales.xml b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/sales.xml new file mode 100644 index 00000000000..03c153cb1e5 --- /dev/null +++ b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/sales.xml @@ -0,0 +1,46 @@ + + + 2.9 + 2000 + + + 3.5 + 2001 + + + 3.1 + 2002 + + + 4.2 + 2003 + + + 4.5 + 2004 + + + 7.4 + 2005 + + + 9.6 + 2006 + + + 9 + 2007 + + + 7.3 + 2008 + + + 5.8 + 2009 + + + 7.7 + 2010 + + diff --git a/addons/base_graph/static/lib/dhtmlxGraph/samples/common/stat.xml b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/stat.xml new file mode 100644 index 00000000000..824ff6f6829 --- /dev/null +++ b/addons/base_graph/static/lib/dhtmlxGraph/samples/common/stat.xml @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3