Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
AphroMad
Contributor II
Contributor II

Display Text with API for extend qlik visualizations

I'm using the qlik API to display charts into a website of mine. 

To do so, i use the documentation here https://qlik.dev/extend/extend-qlik-visualizations/supported-charts/

and basically what i do is :

I import the script by doing that 

<script src="https://cdn.jsdelivr.net/npm/@nebula.js/sn-barchart"></script>

 

And then, i can just display a chart by doing something like that 

{{ qlik_chart(chart_id="CHART-ID", app_id="APP-ID", chart_type="barchart")}}

 

This is working fine with the chart I want. From one exception, the text ! 

Here is the weird thing tho, a file to integrate the text is available online at https://cdn.jsdelivr.net/npm/@nebula.js/sn-text. So that's why i'm pretty sure this could work. But maybe the method of use would be different and I can't really get why or how i'm supposed to find that. 

 

Thanks in advance 

 
Labels (4)
3 Replies
BawejaMedia
Contributor III
Contributor III

 

To integrate text using the Nebula.js library for Qlik charts, you can follow a similar process to what you did for the bar chart. Here's how you can include text using the sn-text extension:

  1. Import the sn-text script:

 

 

 
  1. Use the qlik_chart function to display the text:

 

html
{{ qlik_chart(chart_id="TEXT-CHART-ID", app_id="APP-ID", chart_type="text")}}

 

Replace "TEXT-CHART-ID" with the ID of the text chart you want to display and "APP-ID" with your Qlik app ID.

Make sure you have the correct chart ID for the text chart you want to display. Additionally, ensure that you have the necessary permissions and configurations set up in your Qlik environment to access and display the text chart data. Also, check out baweja Media

AphroMad
Contributor II
Contributor II
Author

Hey, thanks for the quick answer. 

Unfortunately, using the usual method import sn-text script + using the qlik_chart function does not work. 
I'm having this error in the console :

DOMException: Failed to execute 'querySelector' on 'Document': '#xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is not a valid selector. 



I'm not sure i actually understood the sentence : 

"Additionally, ensure that you have the necessary permissions and configurations set up in your Qlik environment to access and display the text chart data.". Where could I check that ? 


Thanks in advance 

 

AphroMad
Contributor II
Contributor II
Author

Hey, still no idea to solve this ? 

Thanks in advance !