Skip to content

Commit e692340

Browse files
jwilliams-mongojeff-allen-mongo
authored andcommitted
(DOCSP-7879): remove mongodb from embedded charts (#277)
* (DOCSP-7879): remove mongodb from embedded charts * (DOCSP-7879): copy review edits * (DOCSP-7879): additional review feedback
1 parent 93d36f6 commit e692340

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

source/embedded-chart-options.txt

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,23 @@ embedded chart displays in your application:
222222
Chart using ``light`` theme with default ``light`` theme
223223
``background`` of ``#FFFFFF``:
224224

225-
.. image:: /images/charts/light-theme-default.png
225+
.. figure:: /images/charts/light-theme-default.png
226+
:figwidth: 540
227+
:alt: Chart displayed using the light theme with light theme style.
226228

227229
Chart using ``dark`` theme with default ``light`` theme
228230
``background`` of ``#FFFFFF``:
229231

230-
.. image:: /images/charts/dark-theme-light-theme-values.png
232+
.. figure:: /images/charts/dark-theme-light-theme-values.png
233+
:figwidth: 540
234+
:alt: Chart displayed using the dark theme with light theme style.
231235

232236
Chart using ``dark`` theme with default ``dark`` theme ``background``
233237
of ``#21313C``:
234238

235-
.. image:: /images/charts/dark-theme-dark-theme-values.png
239+
.. figure:: /images/charts/dark-theme-dark-theme-values.png
240+
:figwidth: 540
241+
:alt: Chart displayed using the dark theme with dark theme style.
236242

237243
Example
238244
~~~~~~~
@@ -253,3 +259,44 @@ for readability.
253259
tenant=a1b2c3d4-a1b2-a1b2-a1b2-bb7f36c9def6&
254260
theme=dark
255261
"></iframe>
262+
263+
Remove the MongoDB Logo
264+
---------------------------
265+
266+
Use the ``attribution`` query parameter with a value of ``false`` to
267+
display your embedded chart without the ``MongoDB`` logo.
268+
269+
Example
270+
~~~~~~~
271+
272+
The following image displays an embedded chart with the ``MongoDB``
273+
logo:
274+
275+
.. figure:: /images/charts/chart-with-logo.png
276+
:figwidth: 540
277+
:alt: Chart displayed with the MongoDB logo.
278+
279+
The following iframe snippet renders a chart that does not display
280+
the ``MongoDB`` logo:
281+
282+
.. code-block:: html
283+
:copyable: false
284+
:emphasize-lines: 9
285+
286+
<iframe
287+
style="background: #FFFFFF;border: none;border-radius: 2px;
288+
box-shadow: 0 2px 10px 0 rgba(70, 76, 79, .2);"
289+
width="640" height="480" src="
290+
https://charts.mongodb.com/mongodb-charts-twsqq/embed/charts
291+
?id=a1b2c3d4-a1b2-c3d4-9766-47b0b2daaff3&
292+
tenant=a1b2c3d4-a1b2-a1b2-a1b2-bb7f36c9def6&
293+
theme=light&
294+
attribution=false
295+
"></iframe>
296+
297+
The following image displays the embedded chart without the ``MongoDB``
298+
logo:
299+
300+
.. figure:: /images/charts/chart-without-logo.png
301+
:figwidth: 640
302+
:alt: Chart displayed without the MongoDB logo.
62.9 KB
Loading
61.5 KB
Loading

0 commit comments

Comments
 (0)