Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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:
<script src="https://cdn.jsdelivr.net/npm/@nebula.js/sn-text"></script>
qlik_chart
function to display the text:
{{ 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
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
Hey, still no idea to solve this ?
Thanks in advance !