Skip to content

Commit 52184f2

Browse files
committed
(DOCSP-29922) Final Async Query Updates.
1 parent 15c92fd commit 52184f2

File tree

5 files changed

+31
-27
lines changed

5 files changed

+31
-27
lines changed

source/build-charts.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Create a Chart
3131
You can create a chart from the :guilabel:`Dashboards` page
3232
in |charts-short| or from the {+atlas-ui+}.
3333

34+
.. note::
35+
36+
If the preview for a chart of the full dataset takes a while to
37+
load, you can :ref:`preview a subset of the data
38+
<charts-subset-mode>` with the :guilabel:`Subset` toggle.
39+
3440
.. tabs::
3541

3642
.. tab:: Charts

source/embedded-chart-options.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ a variety of options. Options are available to charts embedded with the
183183

184184
The following code snippets set the theme of a Chart instance named
185185
``chart`` to ``dark`` and it to refresh automatically every
186-
30 seconds.
186+
60 seconds.
187187

188188
.. code-block:: javascript
189189

190190
chart.setTheme("dark");
191191
chart.setAutoRefresh(true);
192-
chart.setMaxDataAge(30);
192+
chart.setMaxDataAge(60);
193193

194194
.. list-table::
195195
:header-rows: 1
@@ -282,16 +282,16 @@ a variety of options. Options are available to charts embedded with the
282282
~~~~~~~
283283

284284
The following iframe embeds a chart which automatically
285-
refreshes every 30 seconds as defined by the
286-
``autoRefresh=true`` and the ``maxDataAge=30`` query
285+
refreshes every 60 seconds as defined by the
286+
``autoRefresh=true`` and the ``maxDataAge=60`` query
287287
parameters:
288288

289289
.. code-block:: html
290290

291291
<iframe style="border: none;border-radius: 2px;box-shadow: 0 2px
292292
10px 0 rgba(70, 76, 79, .2);" width="640" height="480" src="
293293
{charts-host}/embed/charts?id=b3ca720f-4b4a-40b4-a726-e7dc0c49aa1c&
294-
autoRefresh=true&maxDataAge=30"></iframe>
294+
autoRefresh=true&maxDataAge=60"></iframe>
295295

296296
Considerations
297297
~~~~~~~~~~~~~~

source/embedded-dashboard-options.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ dashboards embedded with the :ref:`Embedding SDK
186186
options for a Dashboard instance named ``dashboard``:
187187

188188
- The theme to ``dark``
189-
- The automatic refresh rate to every 30 seconds
189+
- The automatic refresh rate to every 60 seconds
190190

191191
.. code-block:: javascript
192192

193193
dashboard.setTheme("dark");
194194
dashboard.setAutoRefresh(true);
195-
dashboard.setMaxDataAge(30);
195+
dashboard.setMaxDataAge(60);
196196

197197
.. list-table::
198198
:header-rows: 1
@@ -277,16 +277,16 @@ dashboards embedded with the :ref:`Embedding SDK
277277
.. example::
278278

279279
The following iframe embeds a dashboard which automatically
280-
refreshes every 30 seconds as defined by the
281-
``autoRefresh=true`` and the ``maxDataAge=30`` query
280+
refreshes every 60 seconds as defined by the
281+
``autoRefresh=true`` and the ``maxDataAge=60`` query
282282
parameters:
283283

284284
.. code-block:: html
285285

286286
<iframe style="border: none;border-radius: 2px;box-shadow: 0 2px
287287
10px 0 rgba(70, 76, 79, .2);" width="640" height="480" src="
288288
{charts-host}/embed/dashboards?id=b3ca720f-4b4a-40b4-a726-e7dc0c49aa1c&
289-
autoRefresh=true&maxDataAge=30"></iframe>
289+
autoRefresh=true&maxDataAge=60"></iframe>
290290

291291
Considerations
292292
~~~~~~~~~~~~~~

source/filter-embedded-charts.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ an :guilabel:`Unauthenticated` chart and a
164164
https://charts.mongodb.com/charts-atlasproject1-piocy/embed/charts?
165165
id=93584ddb-1115-4a12-afd9-5129e47bbb0d&
166166
filter={"imdb.rating":%20{$gte:%208}}&
167-
autoRefresh=30
167+
autoRefresh=60
168168

169169
The URL uses an encoded ``filter`` parameter of
170170
``{"imdb.rating":%20{$gte:%208}}``. Decoded,
@@ -215,7 +215,7 @@ an :guilabel:`Unauthenticated` chart and a
215215
timestamp=1564156636&
216216
expires-in=300&
217217
filter=%7B%22imdb.rating%22%3A%20%7B%24gte%3A%208%7D%7D&
218-
autoRefresh=30&
218+
autoRefresh=60&
219219
signature=8e0d92b33934c928f6c6974e2f0102ace77f56d851cb0d33893e84c359ab1043
220220

221221
The URL uses an encoded ``filter`` parameter of

source/subset-mode.txt

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ Subset Mode
66

77
.. default-domain:: mongodb
88

9-
You can enable :guilabel:`Subset Mode` in MongoDB Charts to restrict
10-
the input collection to ``1000`` randomly selected documents. To toggle
11-
:guilabel:`Subset Mode`, use the toggle in the :guilabel:`Preview`
12-
section. The :guilabel:`Subset Mode` setting for a chart doesn't
13-
persist when the chart renders on a dashboard. So, if you enable
14-
subset mode when you build a chart, the data that renders in the
15-
dashboard isn't sampled.
9+
You can enable subset mode in MongoDB Charts to restrict the input
10+
collection to ``1000`` randomly selected documents. To enable subset
11+
mode, use the :guilabel:`Subset` toggle in the :guilabel:`Preview`
12+
section. The :guilabel:`Subset` toggle for a chart doesn't persist when
13+
the chart renders on a dashboard. So, if you enable subset mode when
14+
you build a chart, the data that renders in the dashboard isn't sampled.
1615

1716
.. note::
1817

@@ -24,14 +23,13 @@ dashboard isn't sampled.
2423
Use Case
2524
--------
2625

27-
Consider using :guilabel:`Subset Mode` when you draft a chart and
28-
heavily modify chart options. In this situation,
29-
:guilabel:`Subset Mode` lets the chart render quickly
30-
during the building process. When you feel satisfied with your chart,
31-
save it as soon as possible.
26+
Consider using subset mode when you draft a chart and heavily modify
27+
chart options. In this situation, subset mode lets the chart render
28+
quickly during the building process. When you feel satisfied with your
29+
chart, save it as soon as possible.
3230

3331
.. note::
3432

35-
Due to the random nature of sampling, when you have
36-
:guilabel:`Subset Mode` enabled, your visualizations might change
37-
each time the chart loads in the chart builder.
33+
Due to the random nature of sampling, when you have subset mode
34+
enabled, your visualizations might change each time the chart loads
35+
in the chart builder.

0 commit comments

Comments
 (0)