Any widget from the dashboard can be embedded individually in any application using the URL. For widget embedding, you need to enable widget mode and use widget id in the embed URL. The following steps need to be followed for widget embedding.
Open the dashboard and use the inspect element to find the widget id. Then select the widget, which you want to embed.
Copy and keep the
data-widget-id, which needs to be added in the embed URL in next section.
To get the embed URL, click the Share icon of the respective dashboard.
Get Embed Code link in the share dialog box.
Copy the embed URL by clicking the copy icon from the Embed Code dialog.
Get the copied
data-widget-id value from first section, which value needs to be set for
widgetId parameter and set
isWidgetMode parameter in the dashboard URL as follows.
Embed the above embed URL into any web application.
Run the web application, it will show the login window or dashboard based on the type of the dashboard. Click the login and enter the valid user credentials and the widget will render automatically.
NOTE: You can make dashboard public and access it anonymously without need for login.