@@ -193,7 +193,7 @@ Select the appropriate tab for more information on the date filter:
193193 ago from the current date:
194194
195195 .. figure:: /images/charts/relative-date.png
196- :scale: 100 %
196+ :scale: 70 %
197197 :alt: Image showing relative date filter
198198
199199 .. tab:: Absolute Date Filter
@@ -247,7 +247,7 @@ Select the appropriate tab for more information on the date filter:
247247 ``2018``:
248248
249249 .. figure:: /images/charts/absolute-date.png
250- :scale: 60 %
250+ :scale: 70 %
251251 :alt: Image showing absolute date filter
252252
253253 |
@@ -313,6 +313,24 @@ chart.
313313 :scale: 100%
314314 :alt: Image showing boolean filter
315315
316+ .. _enable-disable-filter:
317+
318+ Enable or Disable a Filter
319+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
320+
321+ You can toggle whether a filter in the :guilabel:`Filter` tab
322+ is enabled or disabled. Disabled filters do not affect the documents
323+ which appear in the chart. Disabled filters are grayed out and cannot
324+ be edited until they are enabled.
325+
326+ To toggle whether a filter is enabled, hover over a filter and
327+ set the appearing toggle at the top of the filter to the desired
328+ setting.
329+
330+ .. figure:: /images/charts/filter-tab-disable-toggle.png
331+ :scale: 70%
332+ :alt: Image showing filter toggle
333+
316334.. _query-bar:
317335
318336Query Bar
@@ -322,9 +340,6 @@ The :guilabel:`Query` bar supports more complex queries than
322340the filter panel. Additionally, you can use the query bar to create
323341:manual:`aggregation pipelines </core/aggregation-pipeline/>` to
324342process your data before it is rendered.
325-
326- Filter Data using the Query Bar
327- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
328343
329344To filter data using the :guilabel:`Query` bar:
330345
@@ -336,28 +351,8 @@ To filter data using the :guilabel:`Query` bar:
336351
337352#. Click :guilabel:`Apply`.
338353
339- .. admonition:: Considerations
340- :class: note
341-
342- - Filters on large collections may encounter performance issues if
343- the collection is not appropriately :manual:`indexed <indexes>`.
344-
345- - The date functions utilized in the |charts| query bar are
346- consistent and compatible with the date functions used in the
347- :manual:`mongo shell </mongo>`. As a result, you can use:
348-
349- - ``new Date()``,
350- - ``ISODate()``, or
351- - ``new ISODate()``.
352-
353- |
354-
355- The ``Date()`` function (as opposed to the ``new Date()``
356- constructor) returns the current date as a string, so it cannot be
357- used for querying dates in |charts-short|.
358-
359354Element Query Example
360- `````````````````````
355+ ~~~~~~~~~~~~~~~~~~~~~
361356
362357The following chart shows the average Metacritic ratings of movies
363358over time :ref:`binned <charts-bin-data>` by 5 year periods.
@@ -380,7 +375,7 @@ checking that the second array element exists.
380375.. _regex-filter:
381376
382377Regular Expression (RegEx) Query Example
383- ````````````````````````````````````````
378+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
384379
385380.. _`regular expression`: :manual:`
386381
@@ -413,7 +408,7 @@ letter ``A`` or ``a``, you would write the following in the
413408 { "jobs" : { $regex : "^A", $options : "i" } }
414409
415410Date Query Example
416- ``````````````````
411+ ~~~~~~~~~~~~~~~~~~
417412
418413The following chart shows total sale amounts from an office supply
419414company, categorized by purchase method:
@@ -443,26 +438,44 @@ This query restricts the documents shown to only those with
443438a ``saleDate`` equal to or more recent than ``January 1, 2017`` with at
444439least 5 elements in the ``items`` array.
445440
441+ Considerations
442+ ~~~~~~~~~~~~~~
443+
444+ - Filters on large collections may encounter performance issues if
445+ the collection is not appropriately :manual:`indexed <indexes>`.
446+
447+ - The date functions utilized in the |charts| query bar are
448+ consistent and compatible with the date functions used in the
449+ :manual:`mongo shell </mongo>`. As a result, you can use:
450+
451+ - ``new Date()``,
452+ - ``ISODate()``, or
453+ - ``new ISODate()``.
454+
455+ The ``Date()`` function (as opposed to the ``new Date()``
456+ constructor) returns the current date as a string, so it cannot be
457+ used for querying dates in |charts-short|.
458+
446459.. _charts-agg-pipeline:
447460
448461Create Aggregation Pipelines
449- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
462+ ----------------------------
450463
451464:manual:`Aggregation pipelines </core/aggregation-pipeline/>` transform
452465your documents into an aggregated set of results. In |charts|,
453466aggregation pipelines are commonly used to visualize new fields created
454467from calculated results of pre-existing fields, but also have many other
455468applications.
456469
457- To create an aggregation pipeline in the :guilabel:`Query` bar :
470+ To create an aggregation pipeline:
458471
4594721. In the :guilabel:`Query` bar, input an aggregation pipeline. Your
460473 pipeline must be in square brackets.
461474
462475#. Click :guilabel:`Apply` to execute your pipeline.
463476
464- Aggregation Pipeline Example
465- ````````````````````````````
477+ Example
478+ ~~~~~~~
466479
467480The following chart shows total sale amounts from an office supply
468481company, categorized by store location. The chart utilizes the
@@ -506,7 +519,7 @@ chart displays the the :guilabel:`Sum` of all
506519``saleAmounts`` categorized by store location.
507520
508521Limitations
509- ```````````
522+ ~~~~~~~~~~~
510523
511524The :pipeline:`$lookup` operator is not supported in the
512525aggregation pipeline builder.
0 commit comments