Skip to content

Commit e171041

Browse files
(DOCSP-5013): Refactoring create a chart steps to step file
1 parent 166e269 commit e171041

File tree

2 files changed

+76
-48
lines changed

2 files changed

+76
-48
lines changed

source/build-charts.txt

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,54 +19,7 @@ Create a Chart
1919

2020
To build a new chart:
2121

22-
1. From the :guilabel:`Dashboards` tab, select the dashboard where you
23-
wish to add a new chart. For instructions on setting up a dashboard,
24-
see :doc:`Dashboards </dashboards>`.
25-
26-
#. Click the :guilabel:`Add Chart` button at the top-right corner of
27-
the dashboard view.
28-
29-
#. In the :guilabel:`Data Source` dropdown, select the data source to
30-
be used for this chart. For information on adding data sources in
31-
MongoDB Charts, see
32-
:doc:`Data Sources <data-sources>`.
33-
34-
#. In the :guilabel:`Chart Type` dropdown, select the type for this
35-
chart.
36-
37-
.. note::
38-
39-
Each chart type provides different visualization options
40-
for the fields in your data, reflected by various
41-
*encoding channels*. These channels dictate how your data is
42-
visualized and enable powerful
43-
:manual:`aggregations </reference/operator/aggregation/>` for
44-
your data. For details on the different encoding channel types,
45-
refer to the :ref:`Encoding Channels <encoding-channels>`
46-
page.
47-
48-
#. Drag fields from the :guilabel:`Fields` section to the desired
49-
:ref:`encoding channels <encoding-channels>` below the
50-
:guilabel:`Chart Type` dropdown. The fields listed correspond to the
51-
fields in your data source. You can search for a specific field in
52-
your data source by using the :guilabel:`Filter` search bar at the
53-
top of the :guilabel:`Fields` section.
54-
55-
.. note::
56-
57-
For details on how MongoDB Charts handles embedded objects and
58-
embedded arrays in fields, see the
59-
:ref:`Embedded Objects and Arrays <embedded-objects-arrays>`
60-
page.
61-
62-
#. Give your chart a title by hovering over the
63-
:guilabel:`Enter a title for your chart` text clicking the
64-
:guilabel:`Pencil Icon`. Click the :guilabel:`Green Check Mark` to
65-
save your title.
66-
67-
#. Once you are satisfied with your chart, click
68-
:guilabel:`Save Changes`. This saves your chart to your dashboard
69-
and redirects you to the dashboard view.
22+
.. include:: /includes/steps/build-new-chart.rst
7023

7124
.. class:: hidden
7225

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
title: Select a dashboard for your chart.
2+
ref: new-chart-dashboard
3+
level: 4
4+
content: |
5+
From the :guilabel:`Dashboards` tab, select the dashboard where you
6+
wish to add a new chart. For instructions on setting up a dashboard,
7+
see :doc:`Dashboards </dashboards>`.
8+
---
9+
title: Click the :guilabel:`Add Chart` button at the top-right corner of
10+
the dashboard view.
11+
ref: new-chart-click-add
12+
level: 4
13+
---
14+
title: Choose your chart's data source.
15+
ref: new-chart-data-source
16+
level: 4
17+
content: |
18+
In the :guilabel:`Data Source` dropdown, select the data source to
19+
be used for this chart. For information on adding data sources in
20+
MongoDB Charts, see :doc:`Data Sources <data-sources>`.
21+
---
22+
title: Choose your chart type.
23+
ref: new-chart-type
24+
level: 4
25+
content: |
26+
In the :guilabel:`Chart Type` dropdown, select the type for this
27+
chart.
28+
29+
.. admonition:: Info
30+
:class: note
31+
32+
Each chart type provides different visualization options
33+
for the fields in your data, reflected by various
34+
*encoding channels*. These channels dictate how your data is
35+
visualized and enable powerful
36+
:manual:`aggregations </reference/operator/aggregation/>` for
37+
your data. For details on the different encoding channel types,
38+
refer to the :ref:`Encoding Channels <encoding-channels>`
39+
page.
40+
---
41+
title: Add fields to your chart.
42+
ref: new-chart-fields
43+
level: 4
44+
content: |
45+
Drag fields from the :guilabel:`Fields` section to the desired
46+
:ref:`encoding channels <encoding-channels>` below the
47+
:guilabel:`Chart Type` dropdown. The fields listed correspond to the
48+
fields in your data source. You can search for a specific field in
49+
your data source by using the :guilabel:`Filter` search bar at the
50+
top of the :guilabel:`Fields` section.
51+
52+
.. seealso::
53+
54+
For details on how MongoDB Charts handles embedded objects and
55+
embedded arrays in fields, see the
56+
:ref:`Embedded Objects and Arrays <embedded-objects-arrays>`
57+
page.
58+
59+
---
60+
title: Title your chart.
61+
ref: new-chart-title
62+
level: 4
63+
content: |
64+
Give your chart a title by hovering over the
65+
:guilabel:`Enter a title for your chart` text clicking the
66+
:guilabel:`Pencil Icon`. Click the :guilabel:`Green Check Mark` to
67+
save your title.
68+
---
69+
title: Save your chart.
70+
ref: new-chart-save
71+
level: 4
72+
content: |
73+
Once you are satisfied with your chart, click
74+
:guilabel:`Save Changes`. This saves your chart to your dashboard
75+
and redirects you to the dashboard view.

0 commit comments

Comments
 (0)