From d16813b15d938e9957d2b5820fdebbbd1393bd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 22 Apr 2008 11:28:17 +0200 Subject: [PATCH] Add graph doc and graph dtd --- doc/graph.t2t | 47 +++++++++++++++++++++++++++++++++++++++++ trytond/ir/ui/graph.dtd | 14 ++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 doc/graph.t2t create mode 100644 trytond/ir/ui/graph.dtd diff --git a/doc/graph.t2t b/doc/graph.t2t new file mode 100644 index 0000000000..ff5063ba2e --- /dev/null +++ b/doc/graph.t2t @@ -0,0 +1,47 @@ + +== Graph view == + +The dtd that describe the xml for a graph view is stored in trytond/ir/ui/graph.dtd. + +* XML description: + +- tag "graph": + + - "type": vbar, hbar, line, pie + + - "string": the name of the graph + + - "background": an hexaecimal value for the color of the background + + - "color": the main color + + - "legend": a boolean to specify if the legend must be display + +- tag "x", "y": + + Describe the field that must be used for axis. + "x" must contain only one tag "field" and "y" must at least one but may contain many. + +- tag "field": + + - "name": the name of the field on the object to use + + - "string": allow to override the string that comes from the object + + - "key": can be used to distinguish fields with the same name but that are different with domain + + - "domain": a string that is evaluate with the object value as context. If the result is true the field value is added to the graph otherwise not + + - "fill": defined if the graph must be fill + + +* Example: + + + + + + + + + diff --git a/trytond/ir/ui/graph.dtd b/trytond/ir/ui/graph.dtd new file mode 100644 index 0000000000..46451b3e35 --- /dev/null +++ b/trytond/ir/ui/graph.dtd @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +