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 @@ + + + + + + + + + + + + + +