From 45d649e44d48aca9f779b67e32611c8bc051eb96 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 3 Nov 2014 13:00:54 +0100 Subject: [PATCH] [FIX] doc: graph does not use :grouping see #3403 and 7ad4af8 --- doc/reference/views.rst | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/doc/reference/views.rst b/doc/reference/views.rst index c6c9723504a..3b678a37b3c 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -443,8 +443,7 @@ following attributes: ``name`` (required) the name of a field to use in a graph view. If used for grouping (rather - than aggregating), can be augmented with a - :ref:`reference/views/graph/functions` + than aggregating) ``type`` indicates whether the field should be used as a grouping criteria or as an @@ -459,22 +458,16 @@ following attributes: ``measure`` field to aggregate within a group +``interval`` + on date and datetime fields, groups by the specified interval (``day``, + ``week``, ``month``, ``quarter`` or ``year``) instead of grouping on the + specific datetime (fixed second resolution) or date (fixed day resolution). + .. warning:: graph view aggregations are performed on database content, non-stored function fields can not be used in graph views -.. _reference/views/graph/functions: - -Grouping function ------------------ - -Field names in graph views can be postfixed with a grouping function using the -form :samp:`{field_name}:{function}`. As of 8.0, only date and datetime fields -support grouping functions. The available grouping functions are ``day``, -``week``, ``month``, ``quarter`` and ``year``. By default, date and datetime -fields are grouped month-wise. - .. _reference/views/kanban: Kanban