By embedding a chart object to your web application, you will use in the body
of the HTML file, the following example sets the ui
attribute to object, indicating to qlik-embed that you want to embed a specific visualization from a Qlik Sense application.
[ Fig.1 ]
<qlik-embed
ui="analytics/chart"
app-id="<APP_ID>"
object-id="<CHART_ID>"
></qlik-embed>
Using " ui= analytics/chart"
it should correctly render, for instance, a single KPI object, as per the documentation below : https://qlik.dev/extend/extend-qlik-visualizations/supported-charts/
The following error can occurs when trying to render the KPI in your web application:
Failed to load visualization: 'kpi'
This is because the character set is not supported and the only supported one is "utf-8".
Resolution
Please apply the following instruction in your HTML file to the head-element :
<meta charset="utf-8">
For usage where the encoding cannot be controlled by the user (such as embedding in a tool, e.g. Microsoft Excel ) and this error arises, the customer will have to embed with the "classic/chart" type and the option "iframe=true".
Environment
Qlik Cloud
Related Content
2.0.1 Add the script configuration for qlik-embed