Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
kmstephenson
Creator
Creator

Export charts to PNGs programmatically?

Hi All,

Is there any way to programmatically export a chart or map multiple times with with different selections - such as changing zip code? Or is the export functionality in Qlik Sense a manual click-and-export for each desired chart? For example, is it possible to program this in the back-end using Tab to change selections and export?

Thanks!

 

Labels (2)
1 Reply
andoryuu
Creator III
Creator III

Yes, you can do this. You would have a process that has all of your selections and calls the URL once at a time thusly:
assume your base sheet URL is "https://yourserver/sense/app/guid/sheet/guid/state/analysis/" You get each zip code like this (field name is zipcode)
https://yourserver/sense/app/guid/sheet/guid/state/analysis/select/zipcode/12345
https://yourserver/sense/app/guid/sheet/guid/state/analysis/select/zipcode/12346
etc.
From there use headless chrome to export the rendered chart to PNG. You can also use the Dev Hub single configurator to render just the single chart so that you don't have to get the whole sheet. It would be a bit of a challenging project, but we have done similar things here with PDF.

Qlik offers a product called NPrinting that also does this if you want to spend the money and time implementing it. I'm not a big fan of the product.