Skip to content

Commit c4c00ec

Browse files
authored
(DOCSP-20983) Updated the movie details tutorial as part of the Charts brand refresh (#596)
* (DOCSP-20983) refreshed the movie details tutorial * (DOCSP-20983) fixed a small error * (DOCSP-20983) fixed another small error * (DOCSP-20983) addressed copy feedback * (DOCSP-20983) addressed feedback * (DOCSP-20983) addressed tech feedback * (DOCSP-20983) addressed tech feedback
1 parent 1fce7c0 commit c4c00ec

9 files changed

+312
-78
lines changed
336 KB
Loading
362 KB
Loading
543 KB
Loading

source/includes/steps-column-chart-award-wins.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ title: Click :guilabel:`Add Chart`.
22
ref: bar-chart-add-chart
33
level: 4
44
---
5+
title: Select the ``sample_mflix.movies`` data source.
56
ref: awards-wins-select-source
6-
inherit:
7-
file: steps-source-select-data-source.yaml
8-
ref: sample-mflix-movies-data-source
7+
level: 4
8+
content: |
9+
In the :guilabel:`Select Data Source` modal that appears:
10+
11+
a. Click the :guilabel:`Sample` tab.
12+
13+
#. Click :guilabel:`Select` on the ``Sample Data: Movies`` data source.
914
---
1015
title: Select the Chart Type.
1116
ref: click-stacked-column
1217
level: 4
1318
content: |
1419
a. In the :guilabel:`Chart Type` dropdown menu, select
15-
:guilabel:`Column`.
16-
b. Select the panel labeled :guilabel:`Stacked` below
17-
the :guilabel:`Chart Type` dropdown menu.
20+
:guilabel:`Stacked Column`.
1821
---
1922
title: Add the desired fields to the proper encoding channels.
2023
ref: bar-chart-add-fields
@@ -67,7 +70,7 @@ content: |
6770
6871
a. Toggle :guilabel:`Limit Results` to :guilabel:`On`.
6972
70-
#. Set :guilabel:`Show` to ``10``.
73+
#. Set the value of the adjacent numeric field to ``10``.
7174
7275
---
7376
title: Group awards by genre.

source/includes/steps-grid-chart-award-wins.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ content: |
55
The :guilabel:`Add Chart` button is in the top right corner of the
66
dashboard.
77
---
8+
title: Select the ``sample_mflix.movies`` data source.
89
ref: grid-chart-select-source
9-
inherit:
10-
file: steps-source-select-data-source.yaml
11-
ref: sample-mflix-movies-data-source
10+
level: 4
11+
content: |
12+
In the :guilabel:`Select Data Source` modal that appears:
13+
14+
a. Click the :guilabel:`Sample` tab.
15+
16+
#. Click :guilabel:`Select` on the ``Sample Data: Movies`` data source.
1217
---
1318
title: Select the Chart Type.
1419
ref: click-grid
1520
level: 4
1621
content: |
1722
1823
a. In the :guilabel:`Chart Type` dropdown, select
19-
:guilabel:`Grid`.
20-
#. Select the :guilabel:`Scatter` panel below the dropdown menu.
24+
:guilabel:`Scatter`.
2125
---
2226
title: Add the desired fields to the proper encoding channels.
2327
ref: grid-chart-add-fields
@@ -63,6 +67,12 @@ content: |
6367
here because it has low cardinality; there are only four possible
6468
values (``G``, ``PG``, ``PG-13``, and ``R``). Fields with higher
6569
cardinality may make the chart too noisy to read.
70+
71+
a. (Optional) In the :guilabel:`Fields` section, drag the ``title``
72+
field to the :guilabel:`Tooltip Detail` encoding channel. You can
73+
now hover over each marker on your chart to view the title of the
74+
movie it represents.
75+
6676
---
6777
title: Title your chart.
6878
ref: bar-chart-add-title

source/includes/steps-load-sample-data.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,26 @@ content: |
2020
2121
|service| begins loading your sample data. This operation takes
2222
approximately 5 minutes to complete.
23+
---
24+
title: View your sample data.
25+
ref: view-sample-data
26+
level: 4
27+
content: |
28+
To view your sample data, click :guilabel:`Browse Collections`. The
29+
sample data set that now appears in your {+database-deployment+} includes
30+
the follow databases:
31+
32+
- ``sample_airbnb``
33+
- ``sample_analytics``
34+
- ``sample_geospatial``
35+
- ``sample_guides``
36+
- ``sample_mflix``
37+
- ``sample_restaurants``
38+
- ``sample_supplies``
39+
- ``sample_training``
40+
- ``sample_weatherdata``
41+
42+
For details on the collections and documents included in these
43+
datasets, see :ref:`available-sample-datasets`.
2344
2445
...

source/tutorial/movie-details/create-dashboard.txt

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,28 @@ Create a New Dashboard
88

99
*Estimated Time to Complete: 2 minutes*
1010

11+
Prerequisites
12+
-------------
13+
14+
To complete this tutorial you will need a
15+
`MongoDB Atlas <https://www.mongodb.com/cloud/atlas>`_ cluster. Refer
16+
to the :atlas:`Create a Cluster </create-new-cluster/>` documentation
17+
for instructions on creating an |service| cluster.
18+
1119
Instructions
1220
------------
1321

14-
Now that you have created your data source and linked it to the
15-
order data collection, create a :doc:`dashboard </dashboards>`
16-
to hold your visualizations:
22+
Create a :doc:`dashboard </dashboards>` to hold your visualizations:
23+
24+
1. To navigate to |charts|, click :guilabel:`Charts` in the navigation bar.
1725

18-
1. In |charts|, click :guilabel:`Dashboards` in the sidebar.
26+
#. If the :guilabel:`Dashboards` page not already displayed, click
27+
:guilabel:`Project` under :guilabel:`Dashboards` in the sidebar.
1928

20-
#. Click the :guilabel:`New Dashboard` button.
29+
#. Click :guilabel:`Add Dashboard`.
2130

22-
#. Copy the following into the :guilabel:`Title` input:
31+
#. In the :guilabel:`Add Dashboard` dialog, copy the following into
32+
the :guilabel:`Title` input:
2333

2434
.. code-block:: none
2535

source/tutorial/movie-details/movie-details-tutorial-overview.txt

Lines changed: 138 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Visualizing Movie Details
1414

1515
.. |dataset| replace:: ``test.movieDetails``
1616

17-
*Total Estimated Time to Complete: 20-30 minutes*
17+
*Total Estimated Time to Complete: 15-20 minutes*
1818

1919
Introduction
2020
------------
@@ -25,6 +25,138 @@ a :doc:`data source </data-sources>` containing the ``Mflix``
2525
This sample data contains information on movies such as release year,
2626
cast, and reviews.
2727

28+
The following is a sample document from the dataset:
29+
30+
.. code-block:: json
31+
32+
{
33+
"_id": {
34+
"$oid": "573a1391f29313caabcd9637"
35+
},
36+
"plot": "The ancient vampire Count Dracula arrives in
37+
England and begins to prey upon the virtuous young Mina.",
38+
"genres": [
39+
"Horror"
40+
],
41+
"runtime": {
42+
"$numberInt": "85"
43+
},
44+
"rated": "APPROVED",
45+
"cast": [
46+
"Bela Lugosi",
47+
"Helen Chandler",
48+
"David Manners",
49+
"Dwight Frye"
50+
],
51+
"num_mflix_comments": {
52+
"$numberInt": "1"
53+
},
54+
"poster": "https://m.media-amazon.com/images/M/MV5BZDY2ODZhZWQtNDk0ZS00OGE4LWE4NjAtZjE5MTJhMjExMTRjXkEyXkFqcGdeQXVyNjc1NTYyMjg@._V1_SY1000_SX677_AL_.jpg",
55+
"title": "Dracula",
56+
"fullplot": "After a harrowing ride through the Carpathian mountains in eastern Europe,
57+
Renfield enters castle Dracula to finalize the transferral of Carfax Abbey in London to
58+
Count Dracula, who is in actuality a vampire. Renfield is drugged by the eerily hypnotic
59+
count, and turned into one of his thralls, protecting him during his sea voyage to London.
60+
After sucking the blood and turning the young Lucy Weston into a vampire, Dracula turns his
61+
attention to her friend Mina Seward, daughter of Dr. Seward who then calls in a specialist,
62+
Dr. Van Helsing, to diagnose the sudden deterioration of Mina's health. Van Helsing,
63+
realizing that Dracula is indeed a vampire, tries to prepare Mina's fiance, John Harker,
64+
and Dr. Seward for what is to come and the measures that will have to be taken to prevent
65+
Mina from becoming one of the undead.",
66+
"languages": [
67+
"English",
68+
"Hungarian",
69+
"Latin"
70+
],
71+
"released": {
72+
"$date": {
73+
"$numberLong": "-1226966400000"
74+
}
75+
},
76+
"directors": [
77+
"Tod Browning"
78+
],
79+
"writers": [
80+
"Bram Stoker (by)",
81+
"Hamilton Deane (from the play adapted by)",
82+
"John L. Balderston (from the play adapted by)",
83+
"Garrett Fort (play)"
84+
],
85+
"awards": {
86+
"wins": {
87+
"$numberInt": "2"
88+
},
89+
"nominations": {
90+
"$numberInt": "1"
91+
},
92+
"text": {
93+
"2 wins & 1 nomination."
94+
}
95+
},
96+
"lastupdated": "2015-08-28 00:30:04.660000000",
97+
"year": {
98+
"$numberInt": "1931"
99+
},
100+
"imdb": {
101+
"rating": {
102+
"$numberDouble": "7.6"
103+
},
104+
"votes": {
105+
"$numberInt": "30184"
106+
},
107+
"id": {
108+
"$numberInt": "21814"
109+
}
110+
},
111+
"countries": [
112+
"USA"
113+
],
114+
"type": "movie",
115+
"tomatoes": {
116+
"viewer": {
117+
"rating": {
118+
"$numberDouble": "3.7"
119+
},
120+
"numReviews": {
121+
"$numberInt": "44035"
122+
},
123+
"meter": {
124+
"$numberInt": "82"
125+
}
126+
},
127+
"dvd": {
128+
"$date": {
129+
"$numberLong": "998956800000"
130+
}
131+
},
132+
"critic": {
133+
"rating": {
134+
"$numberDouble": "7.9"
135+
},
136+
"numReviews": {
137+
"$numberInt": "45"
138+
},
139+
"meter": {
140+
"$numberInt": "91"
141+
}
142+
},
143+
"lastUpdated": {
144+
"$date": {
145+
"$numberLong": "1442516384000"
146+
}
147+
},
148+
"consensus": "Bela Lugosi's timeless portrayal of Dracula in this creepy and
149+
atmospheric 1931 film has set the standard for major vampiric roles since.",
150+
"rotten": {
151+
"$numberInt": "4"
152+
},
153+
"production": "Universal Pictures",
154+
"fresh": {
155+
"$numberInt": "41"
156+
}
157+
}
158+
}
159+
28160
With this tutorial, you will learn how to use filters to refine a large
29161
result set down to an easily understandable chart, and use multi-series
30162
charts to gain further insight into the data.
@@ -50,19 +182,17 @@ chart and a scatter chart.
50182
Table of Contents
51183
-----------------
52184

53-
- Step 1: :doc:`/tutorial/movie-details/prereqs-and-import-data`
54-
- Step 2: :doc:`/tutorial/movie-details/create-dashboard`
55-
- Step 3: :doc:`/tutorial/movie-details/column-chart-director-awards`
56-
- Step 4: :doc:`/tutorial/movie-details/scatter-chart-movies-ratings`
57-
- Step 5: :doc:`/tutorial/movie-details/arrange-charts`
185+
- Step 1: :doc:`/tutorial/movie-details/create-dashboard`
186+
- Step 2: :doc:`/tutorial/movie-details/column-chart-director-awards`
187+
- Step 3: :doc:`/tutorial/movie-details/scatter-chart-movies-ratings`
188+
- Step 4: :doc:`/tutorial/movie-details/arrange-charts`
58189

59190
To get started, move ahead to the
60-
:doc:`/tutorial/movie-details/prereqs-and-import-data` page.
191+
:doc:`/tutorial/movie-details/create-dashboard` page.
61192

62193
.. toctree::
63194
:titlesonly:
64195

65-
/tutorial/movie-details/prereqs-and-import-data
66196
/tutorial/movie-details/create-dashboard
67197
/tutorial/movie-details/column-chart-director-awards
68198
/tutorial/movie-details/scatter-chart-movies-ratings

0 commit comments

Comments
 (0)