Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Was this of any use?
Hi,
it sounds to me like you're trying to load something before it exists.
Can you share your script.js?
File script.js in attachment
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 }
Was this of any use?
Hi,
I'm behind a reverse proxy. I have to do some checks before coming back.
Many thanks for your information.