Link Search Menu Expand Document

Embed Boarding List Chart

Now that you have created the Boarding List Chart, let’s embed it in your application.

  1. On your dashboard, mouse over the chart until you see the ellipses. Select the ellipses and select “Embed Chart”: Where to find 'Embed Chart' button after clicking the ellipses

  2. Select the “Authenticated” section, then set “Enabled authenticated access” to “ON”, then select “Add” to set up an Authentication Provider. How to add an Authentication Provider

  3. Enter a name for the authentication integration, such as “O-FISH Charts for Web”

  4. Select “Realm” as the Provider.

  5. Select your Realm Project (our example is WildAid)

  6. Select your Realm app - this is the same as your Realm App ID (e.g. wildaid-xxxxx)

  7. Set the “Fetch data using Realm app” toggle to “ON”

  8. Set the Realm Service Name to “mongodb-atlas”

  9. Your settings should look something like this - if all looks good, select “Save Provider”: Authentication Provider settings. Name: 'O-FISH Charts for Web', Provider: 'Realm', Realm Project: 'WildAid', Realm App: 'wildaidapp-sulby', Fetch data using Realm app: Turned on, Realm Service Name: 'MongoDB-atlas'

  10. When you have a green verification section, select “Back to Embed Chart”: Success Message saying 'O-FISH Charts for Web authentication provider added' with back button

  11. Set the User Specified Filters to “date” and select “Save”:
    User Specified Filters box under Authenticated tab with 'date' tag

  12. Copy the Charts Base URL: Where to copy Charts Base URL under Authenticated Tab

  13. Paste the URL into your web application’s src/config.js file (where the realmAppId is set): Inside chartsConfig, add baseUrl: "Copied Charts Base URL"

  14. Go back to the Web UI and copy the Chart ID: Where to copy Chart ID under Authenticated Tab

  15. In the Charts UI, select “Close” to close the “Embed Chart” window.

  16. Paste the Chart ID into your web application’s src/config.js file under “patrol-hours”.


Troubleshooting - Up to main build page