Build an extension
Building a visualization extension with the Extension API involves several stages, from defining the extension structure to adding interactivity and finishing touches.
Steps overview
-
Define the visualization structure - every extension is made up of a backend generic object that holds the properties, and a frontend
paint()method that renders the visual output. Start with Visualization and Generic object in visualization extensions. -
Configure data - use
initialPropertiesto specify the data your extension needs. A HyperCube is the most common structure, mapping dimensions and measures to rows and columns. qListObjectDef is available for list-based extensions. See Configuring data and Consuming data. -
Work with data - access the data returned in the layout and render it. You can also get additional data by paging through large data sets.
-
Handle selections - allow users to interact with your visualization by selecting data. Review the available selection models to choose the right approach.
-
Make the extension dynamic - expose properties so users can configure the extension from the properties panel. See Make your visualization extension dynamic.
-
Load external resources - reference stylesheets, images, and other assets using the resource loading approach.
-
Apply styling and theming - use CSS styling and integrate with the active Qlik Cloud theme so your extension respects the app’s appearance.
-
Add finishing touches - improve the authoring experience by adding a preview image. On Qlik Sense client-managed you can also enable export to image, PDF, and PowerPoint. In Qlik Cloud, extensions support data export to XLSX if the chart includes a hypercube, but export to image, PDF, and PowerPoint is not supported.