Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!

Qlik-embed web components : using " analytics/chart " only support " utf-8 "

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Caterina_Fruci
Support
Support

Qlik-embed web components : using " analytics/chart " only support " utf-8 "

Last Update:

Nov 20, 2024 3:16:34 AM

Updated By:

Caterina_Fruci

Created date:

Nov 20, 2024 3:06:19 AM

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'

failed to load visualization kpi.png

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

Labels (1)
Version history
Last update:
yesterday
Updated by: