This feature is provided as Public Preview and is free of charge.
After the end of the Public Preview period, the functionality and pricing of this feature will be subject to change.
If you want to show the result of your data visualization outside the DoubleCloud console, you can embed a supported chart into your web page or a mobile product. If you want to know more about the process of embedding, see Secure embedding.
To securely embed a chart from DoubleCloud Visualization into your website or product, you need to complete the following steps:
Parameters that can be changed in the URL without the need to sign the request again.
To create an embedding entity:
Open the wizard for the chart you want to embed.
On top of the page to the right of the breadcrumbs,
click
→ Embedding settings.
You'll see the following window:
Click + Create embed.
You’ll see the following dialog:
In the Create embed dialog:
Name your embedding entity.
From the dropdown menu, select the embedding key with which you want to sign the requests to Visualization.
Under Unsigned parameters, specify the unsigned parameters you want to apply to your chart. These chart parameters can be later on the client side without regenerating the embedding token.
Review the Dependencies for the chart.
Click Create. You'll see the Embed created window with the usage example:
Copy the link example for future use and click Close.
You'll see your embed ID on the list:
Now you have both the entity and the key to sign for it with. The final step is to generate the link signed with a JWT token.
Create a signed link
To create a signed link:
Prepare the token payload:
Get your private key issued when creating the Embedding key.
Create a JWT payload with the following parameters: