Skip to content

Commit 602a237

Browse files
jwilliams-mongojeff-allen-mongo
authored andcommitted
(DOCSP-10747), (DOCSP-10474): bin data updates (#364)
* (DOCSP-10747), (DOCSP-10474): bin data updates * (DOCSP-10747), (DOCSP-10474): add week formatting to field level options * (DOCSP-10747), (DOCSP-10474): copy review fixes * (DOCSP-10747), (DOCSP-10474): make examples consistent * (DOCSP-10747), (DOCSP-10474): fix typo
1 parent 8c33b48 commit 602a237

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

source/bin-data.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ following bins for dates:
4545

4646
* Year
4747
* Month
48+
* Week of Year
4849
* Date of the Month
4950
* Day of the Week
5051
* Hour
@@ -155,3 +156,50 @@ to the visualization, rather than being grouped into bins.
155156
.. figure:: /images/charts/charts-numeric-binning.png
156157
:figwidth: 680px
157158
:alt: Charts numeric binning example
159+
160+
Empty Bins
161+
----------
162+
163+
When binning is enabled, |charts-short| displays entries for
164+
empty bins within the minimum and maximum data range a chart displays.
165+
166+
.. admonition: Exception
167+
:class: note
168+
169+
|charts-short| doesn't display empty bins if including them results
170+
in more than 5000 unique bins on a chart.
171+
172+
The value |charts-short| uses for empty bins depends on the
173+
aggregation function you choose:
174+
175+
.. list-table::
176+
:header-rows: 1
177+
:widths: 2 1
178+
179+
* - Aggregation Function
180+
- Inferred Value
181+
182+
* - ``count`` or ``distinct``
183+
- ``0``
184+
185+
* - All Other Functions
186+
- ``null``
187+
188+
|charts-short| displays bins with ``null`` values differently based on
189+
chart type:
190+
191+
.. list-table::
192+
:header-rows: 1
193+
:widths: 1 2
194+
195+
* - Chart Type
196+
- How |charts-short| Displays ``null`` Bins
197+
198+
* - :ref:`column-bar-chart-ref`
199+
- Bars with a height of ``0``. |charts-short| doesn't display data
200+
labels for ``null`` bins, even if enabled.
201+
202+
* - :ref:`line-area-chart-ref`
203+
- Linear interpolation, with no data marker on the ``null`` bins.
204+
|charts-short| doesn't display data labels for ``null`` bins,
205+
even if enabled.

source/customize-charts/field-level-options.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ datetime format. The following table shows how to create custom datetime formats
147147
* - M
148148
- Month as numbers with no leading zero.
149149
- ``8``
150+
* - [W]WW
151+
- Week of the year preceded by a ``W`` and with a leading zero,
152+
if applicable.
153+
- ``W01``
154+
* - W
155+
- Week of the year as numbers with no leading zero.
156+
- ``1``
150157
* - DDDD
151158
- Day of the year, with leading zeroes if applicable.
152159
- ``076``

0 commit comments

Comments
 (0)