From fa00ff97be5429f2d3fb43a28a8d4eb38e25f4c5 Mon Sep 17 00:00:00 2001 From: Priyanka Kakadiya Date: Tue, 21 Apr 2020 12:27:53 +0000 Subject: [IMP] web: graph: add bar/line chart sorting PURPOSE Currently, reporting views such as the bar and line charts have their x-axis sorted either alphabetically or according to a sequence. When reporting, the user would be interested in sorting the x-axis values by their measure. SPECIFICATIONS Add 'ascending' and 'descending' options in graph view for bar and line charts Task 2070103 closes odoo/odoo#49970 Signed-off-by: Aaron Bohy (aab) Co-authored-by: Mohammed Shekha --- doc/reference/views.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 488234a9cfd..d3c9b7fb60c 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -1077,6 +1077,10 @@ attributes: within a group ``disable_linking`` set to ``True`` to prevent from redirecting clicks on graph to list view +``order`` + if set, x-axis values will be sorted by default according their measure with + respect to the given order (``asc`` or ``desc``). Only used for ``bar`` and + ``pie`` charts. The only allowed element within a graph view is ``field`` which can have the following attributes: -- cgit v1.2.3