Individualized Embedded Charts
It would be useful to create a chart containing client data and embed it in a website. When a client logs into a website, the chart displays their individual data. They also wouldn't be able to see other client's data.
-
AdminTom (Admin, MongoDB) commented
Thanks Maggie! This is actually possible today, although we need to get better docs on this. When you use Authenticated embedding mode with the SDK, you'll see an option "Inject filter per user" in the Embed Chart dialog. This lets you apply personalisation by filtering the data in each chart based on claims in the authentication token. For example if the token has a claim called "userId", you could ensure each user only sees charts where the owner field matches their user id by using an injected filter like this:
return { owner: context.token.userId } ;