Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
jpcasin78
New Contributor

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
adamdavi3s
Honored Contributor

Re: error with extension D3 chord

Was this of any use?

5 Replies
adamdavi3s
Honored Contributor

Re: error with extension D3 chord

Hi,


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

Can you share your script.js?

jpcasin78
New Contributor

Re: error with extension D3 chord

File script.js  in attachment

adamdavi3s
Honored Contributor

Re: error with extension D3 chord

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
Honored Contributor

Re: error with extension D3 chord

Was this of any use?

jpcasin78
New Contributor

Re: error with extension D3 chord

Hi,

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

Many thanks for your information.

Community Browser