Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
richard_pearce6
Partner - Specialist
Partner - Specialist

Can't see SVG Logo file in Extension folders

I think this is just a file availability issue.  I've deleted the extension from the folder and reinstalled several times (I'm using Desktop). Closed down QS and restarted Etc...

 

When I add the code to a D3 bar chart:

 

 

        var images = svg.selectAll("image")
                .data(dataset)      
                .enter().append("svg:image")
                .attr("xlink:href", "https://cdn.worldvectorlogo.com/logos/bbc-3.svg")

 

 

 
 
The BBC logo works no problem... Now when I use the same file locally.. it does not work...
 
       var images = svg.selectAll("image")
                .data(dataset)      
                .enter().append("svg:image")
                .attr("xlink:href", "svg/brands-imported/bbc-3.svg")
 
 Chrome error is "This Request Has no response data available"... Same if I use an invalid file name...
 
I've tried re-importing the Extension several times (incase it wasn't picking up the new file) and the code works outside of Qlik in my basic d3 fiddle... Is this a file issue or do I need to add more to my URL for it to work in Qlik also??.
 
Thanks
 
Labels (3)
1 Solution

Accepted Solutions
richard_pearce6
Partner - Specialist
Partner - Specialist
Author

I've found the solution. the ref has to start at the extension folder:

"/Extensions/svgReader/svg/brands-imported/svgReader_arrow_left.png",

View solution in original post

2 Replies
richard_pearce6
Partner - Specialist
Partner - Specialist
Author

I've found the solution. the ref has to start at the extension folder:

"/Extensions/svgReader/svg/brands-imported/svgReader_arrow_left.png",
richard_pearce6
Partner - Specialist
Partner - Specialist
Author

Just to add to this, using a clustered server I had to add default to the code..

"/default/Extensions/....."

I used the URL off the app as guidance