Skip to content

Commit 7b7d352

Browse files
authored
(DOCSP-28169) Fixes embedded dashboard code issues (#587)
1 parent 1fc6a1d commit 7b7d352

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/embedded-dashboard-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dashboards embedded with the :ref:`Embedding SDK
7070
- Base URL of the dashboard.
7171
- yes
7272

73-
* - ``dashboardID``
73+
* - ``dashboardId``
7474
- string
7575
- Unique string that identifies the dashboard.
7676
- yes

source/get-started-embedding-sdk.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ To learn how to install the Embedding SDK into your app, see
249249
baseUrl: "https://charts.mongodb.com/charts-embedding-examples-wgffp", // ~REPLACE~ with the Base URL from your Embed Dashboard dialog.
250250
});
251251

252-
const chart = sdk.createChart({
252+
const dashboard = sdk.createDashboard({
253253
dashboardId: "735cfa75-15b8-483a-bc2e-7c6659511c7c", // ~REPLACE~ with the Dashboard ID from your Embed Dashboard dialog.
254254
height: "700px",
255255
widthMode: "scale",
@@ -294,7 +294,7 @@ To learn how to install the Embedding SDK into your app, see
294294
// If using Custom JWT or Google providers, provide your own code to retrieve the JWT
295295
});
296296

297-
const chart = sdk.createChart({
297+
const dashboard = sdk.createDashboard({
298298
dashboardId: "735cfa75-15b8-483a-bc2e-7c6659511c7c", // ~REPLACE~ with the Dashboard ID from your Embed Dashboard dialog.
299299
height: "700px",
300300
widthMode: "scale",

0 commit comments

Comments
 (0)