Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

error with extension D3 chord

Hi all,

I'm having troubles with my object extension D3 Chord in Qlikview 11.2 :

With Firefox :

An error occurred in the postpaint-function in the extension object:

undefined

_______________________________________

With IE :

An error occurred in the postpaint-function in the extension object:

d3 est indéfini

_______________________________________

If I go to another sheet and come back no error anymore.

Is there a way to get rid of this error?

Thanks,

JPC

1 Solution

Accepted Solutions
5 Replies
adamdavi3s
Master
Master

Hi,


it sounds to me like you're trying to load something before it exists.

Can you share your script.js?

Anonymous
Not applicable
Author

File script.js  in attachment

adamdavi3s
Master
Master

Ok, I am relatively new to JS myself but I looks to me like your D3 isn't going to load before the extension that way because its not being called anywhere.

I've got a template you can use if you like, I personally find it really useful to keep everything organised:

Zero to D3 Extension in a few easy steps with an improved template

However you should be able to do it this way, sorry its a very quick edit so apologies if I have made a stupid error

Wrap the script load in a function:

function loadScripts(){

Qva.LoadScript('http://d3js.org/d3.v3.min.js',initData);

}

Then change your initiation at the bottom to be:

if(!initialised) {

loadScripts();

initChart();

initialised = true }

adamdavi3s
Master
Master

Was this of any use?

Anonymous
Not applicable
Author

Hi,

I'm behind a reverse proxy. I have to do some checks before coming back.

Many thanks for your information.