Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Qlik Insider: SaaS capabilities for Data Integration and Analytics, May 25th! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
maxim1500
Partner
Partner

D3 charts in mashup

Hi,

I am trying to build a mashup in Qlik Sense. All the default sense charts work fine, but the D3 charts won't load. They work fine in Qlik, but not in the mashup. I get the following error for each chart:

require.js:567 GET http://[url]/extensions/parallelcoordinates/parallelcoordinates.css.js

require.js:73 Uncaught Error: Script error for: extensions/parallelcoordinates/parallelcoordinates.css

I don't get why in the mashup, require.js is looking for a .css.js file instead of loading the appropriate css file. I know that requirejs/text is already in the minified version of the require.js in C:\Program Files\Qlik\Sense\Client\assets\external\requirejs.

Am I missing something?

Thanks!

1 Solution

Accepted Solutions
maxim1500
Partner
Partner
Author

Found the issue. In my require.config, I added the port number 443 with https in the base url. The module requirejs\text checks for Xhr and compares the port number, the url and the protocol with the one returned from the browser. Since the browser automatically removes this port when using https, 443 did not match with undefined, and it was considered cross-site. I simply removed the port in my baseUrl, and everything is now working.

View solution in original post

2 Replies
maxim1500
Partner
Partner
Author

Found the issue. In my require.config, I added the port number 443 with https in the base url. The module requirejs\text checks for Xhr and compares the port number, the url and the protocol with the one returned from the browser. Since the browser automatically removes this port when using https, 443 did not match with undefined, and it was considered cross-site. I simply removed the port in my baseUrl, and everything is now working.

priyaraja
Contributor
Contributor

I'm also trying to import the D3 chart in Qlik Sense mashup.Can you  send me  the github url