Skip to content

Commit c6e78db

Browse files
DOCSP-1842 - Charts Dashboards documentation (#2)
1 parent 56831e2 commit c6e78db

File tree

9 files changed

+203
-3
lines changed

9 files changed

+203
-3
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PRODUCTION_BUCKET=
99

1010
PROJECT=charts
1111

12-
.PHONY: help html stage publish deploy-search-index publish
12+
.PHONY: help html stage publish deploy-search-index publish
1313

1414
help: ## Show this help message
1515
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
@@ -30,12 +30,13 @@ publish: ## Builds this branch's publishable HTML and other artifacts under buil
3030

3131
deploy-search-index: ## Update the search index for this branch
3232
@echo "Building search index"
33-
mut-index upload build/public -o ${PROJECT}-${GIT_BRANCH}.json -u ${PRODUCTION_URL}/${PROJECT} -g -s
33+
mut-index upload build/public -o ${PROJECT}-${GIT_BRANCH}.json -u ${PRODUCTION_URL}/${PROJECT} -g -s
3434

3535
screenshots:
3636
giza generate assets
3737
@echo "Running screenshot tool"
3838
-rm -r screenshots-temp/charts/
3939
mkdir -p screenshots-temp/charts/
4040
cd build/docs-tools/tools/screenshot-tool && npm install
41+
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/dashboard-landing.js
4142
node build/docs-tools/tools/screenshot-tool/screenshots.js `pwd`/screenshot-scripts/data-sources.js
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
'use strict'
2+
3+
const screenshotNames = ['charts-dashboard-landing.png'];
4+
const screenshotDir = './screenshots-temp';
5+
const origImageDir = './source/images/charts';
6+
7+
exports.run = async function (options) {
8+
const nightmare = options.nightmare;
9+
const originalPath = `${origImageDir}/${screenshotNames[0]}`;
10+
const screenshotPath = `${screenshotDir}/${screenshotNames[0]}`;
11+
12+
await nightmare.goto('http://charts.mongodb.parts');
13+
await nightmare.wait('.Charts_dashboard-overview_list---QP2c0');
14+
await nightmare.wait(1000);
15+
16+
// take a screenshot
17+
await nightmare.screenshot(screenshotPath);
18+
await nightmare.wait(500);
19+
await nightmare.end();
20+
21+
return [[originalPath, screenshotPath]];
22+
}
23+
24+
exports.nightmare_props = {
25+
show: true,
26+
typeInterval: 20,
27+
height: 1000,
28+
width: 1100,
29+
webPreferences: {
30+
zoomFactor: 1.0
31+
}
32+
}

source/dashboards.txt

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
==========
2+
Dashboards
3+
==========
4+
5+
.. default-domain:: mongodb
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
Dashboards are a collection of charts assembled to create a single
14+
unified display of your data. Each chart shows data from a
15+
single MongoDB collection or view, so dashboards are essential to
16+
attain insight into multiple focal points of your data in a single
17+
display.
18+
19+
Dashboards Tab
20+
--------------
21+
22+
The :guilabel:`Dashboards` tab shows all dashboards you have access to
23+
view. For more information on user permissions in MongoDB Charts,
24+
see :doc:`Permission Model <permission-model>`.
25+
26+
.. figure:: /images/charts/charts-dashboard-landing.png
27+
:figwidth: 750px
28+
:alt: Charts Dashboard Tab
29+
30+
Each dashboard shows the following information:
31+
32+
- Title
33+
34+
- Description
35+
36+
- A preview of the first three charts in the dashboard, including the
37+
chart title and type
38+
39+
- When the dashboard was last modified
40+
41+
By default, the most recently modified dashboards are shown first in
42+
the list. You can change the sort order by using the
43+
:guilabel:`Sort By` dropdown menu.
44+
45+
Create a New Dashboard
46+
----------------------
47+
48+
To create a new dashboard:
49+
50+
1. From the :guilabel:`Dashboards` tab, click the
51+
:guilabel:`New Dashboard` button.
52+
53+
2. In the :guilabel:`New Dashboard` dialog, enter a title for your
54+
dashboard.
55+
56+
3. (Optional) Enter a :guilabel:`description` for your dashboard.
57+
58+
4. Click :guilabel:`Create`.
59+
60+
After after clicking the :guilabel:`Create` button you are taken
61+
to the page for your newly created dashboard, where you are prompted to
62+
add the first chart to your dashboard:
63+
64+
.. figure:: /images/charts/charts-dashboard-new.png
65+
:figwidth: 750px
66+
:alt: Charts New Dashboard Example
67+
68+
Manage Existing Dashboards
69+
--------------------------
70+
71+
You can manage existing dashboards by adding charts, removing charts,
72+
and changing the size and position of the charts on the dashboard. To
73+
begin modifying a dashboard, enter the :guilabel:`dashboard view` by
74+
clicking the desired dashboard from the :guilabel:`Dashboards` tab.
75+
76+
.. note::
77+
78+
You can search for dashboards by title by using the search bar
79+
in the top-right corner of the page.
80+
81+
Add a Chart
82+
~~~~~~~~~~~
83+
84+
To add a chart to your dashboard, click the :guilabel:`Add Chart`
85+
button at the top-right of your dashboard. For detailed instructions on
86+
creating charts, see :doc:`Building Charts <building-charts>`.
87+
88+
Edit a Chart
89+
~~~~~~~~~~~~
90+
91+
To edit a chart, hover over the desired chart and click the
92+
:guilabel:`Edit` button. For details on the available editing options,
93+
see :doc:`Building Charts <building-charts>`.
94+
95+
Remove a Chart
96+
~~~~~~~~~~~~~~
97+
98+
.. important::
99+
100+
Removing a chart from a dashboard is a permanent operation. There
101+
is no way to recover a chart once it has been deleted, although
102+
the underlying data in the collection the chart was created
103+
from will continue to exist.
104+
105+
To remove a chart from your dashboard, hover over the desired chart
106+
and click the red :guilabel:`trash can icon` at the top-right of the
107+
chart. Then, click :guilabel:`Delete Chart` to confirm the chart
108+
deletion.
109+
110+
Resize a Chart
111+
~~~~~~~~~~~~~~
112+
113+
To resize a chart, hover over the chart and drag the *bottom-right*
114+
corner until the appearing blue rectangle reaches the deired size.
115+
116+
.. figure:: /images/charts/resize-chart.gif
117+
:figwidth: 750px
118+
:alt: Resize Chart Example
119+
120+
Rearrange Charts
121+
~~~~~~~~~~~~~~~~
122+
123+
To rearrange charts in your dashboard, hover over the chart and drag
124+
the top-left corner until the appearing blue rectangle is in the
125+
desired location. You can also see how moving the chart will affect the
126+
position of other charts in your dashboard, as illustrated in the
127+
following example:
128+
129+
.. figure:: /images/charts/rearrange-charts.gif
130+
:figwidth: 750px
131+
:alt: Rearrange Charts Example
132+
133+
Rename a Dashboard and Edit its Description
134+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135+
136+
To edit a dashboard's title and description:
137+
138+
1. In the top-left corner of the desired dashboard view, hover over
139+
the dashboard title or description and click the
140+
:guilabel:`pencil icon`.
141+
142+
2. In the :guilabel:`New Dashboard` dialog, update the
143+
:guilabel:`Title` and :guilabel:`Description` of your dashboard.
144+
145+
3. Click :guilabel:`Update` to save your changes.
146+
147+
Delete a Dashboard
148+
~~~~~~~~~~~~~~~~~~
149+
150+
.. important::
151+
152+
Deleting a dashboard is a permanent operation. There is no way to
153+
recover a dashboard once it has been deleted, although the
154+
underlying data in the collections used in the dashboard will
155+
continue to exist.
156+
157+
To delete a dashboard:
158+
159+
1. In the :guilabel:`Dashboards` tab, find the dashboard you wish to
160+
delete.
161+
162+
2. Hover over the dashboard and click the red :guilabel:`Trash Can`
163+
icon.
164+
165+
3. Click :guilabel:`Delete` in the :guilabel:`Delete Dashboard` dialog
166+
to confirm deletion.
Loading
29.8 KB
Loading
628 KB
Loading

source/images/charts/resize-chart.gif

640 KB
Loading

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ Until the confusing drop down goes away, see
1515
:titlesonly:
1616

1717
/installation
18+
/dashboards
1819
/data-sources

source/installation.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Installing MongoDB Charts Beta
6363

6464
2. On your target server, sign in to Docker with the Docker ID you used
6565
to register for |charts|:
66-
66+
6767
.. code-block:: sh
6868

6969
docker login

0 commit comments

Comments
 (0)