Nebula.js is an open source “collection of JavaScript libraries, visualizations, and CLIs that helps developers build and integrate visualizations on top of Qlik's Associative Engine”.
It connects to all of our available Qlik Sense products, including the Qlik hosted, Qlik Sense Business and Qlik Sense Enterprise for SaaS.
You can find documentation and how to get started here
https://qlik.dev/libraries-and-tools/nebulajs.
There are also some tutorials like
- https://qlik.dev/tutorials/build-a-helloworld-extension-using-nebulajs
- https://qlik.dev/tutorials/build-a-simple-mashup-using-nebulajs
- https://qlik.dev/tutorials/build-a-simple-web-app
React.js
Today I will show you a template that I put together that uses the React framework and some of the available Picasso charts.
The template can be found here https://github.com/yianni-ververis/nebula-react.
From bash, powershell or any other cli interface start by
- Downloading the repository ‘git clone git@github.com:yianni-ververis/nebula-react.git’
- Add your Qlik Sense url, appId and/or the webIntegrationId if you are building against the Qlik Hosted, Qlik Sense Business and Qlik Sense Enterprise for SaaS, in the src/components/Provider.jsx
- Install the appropriate packages by running ‘npm install’
- Change the dimensions and measures in the charts. You can start by changing the dimension and measure fields in the Barchart at scr/containers/Barchart.jsx, Lines 22 and 25. The ones in the template are from the Helpdesk app.
This is how you can start with a React template.
You can view it live at https://qdt-apps.qlik.com/nebula-react/index.html.
Simple Html
If you do not want to use any framework and you want to use the library and the charts in a simple html page, I have put together samples in observablehq where you can copy or fork and test it against your Qlik Sense installation at https://observablehq.com/collection/@yianni-ververis/nebula.
![barchart.png barchart.png](https://community.qlik.com/t5/image/serverpage/image-id/40665iB8A3642DF0E728B2/image-size/large?v=v2&px=999)
![linechart.png linechart.png](https://community.qlik.com/t5/image/serverpage/image-id/40666i6D87E41590C91B0E/image-size/large?v=v2&px=999)
![piechart.png piechart.png](https://community.qlik.com/t5/image/serverpage/image-id/40667iE917A84598BD3A3B/image-size/large?v=v2&px=999)
![mekkochart.png mekkochart.png](https://community.qlik.com/t5/image/serverpage/image-id/40668i0EBCFD07B7A12BB4/image-size/large?v=v2&px=999)
![funnelchart.png funnelchart.png](https://community.qlik.com/t5/image/serverpage/image-id/40669iC5A915F7E77BE9E0/image-size/large?v=v2&px=999)
![sankeychart.png sankeychart.png](https://community.qlik.com/t5/image/serverpage/image-id/40670i8E08AFA4FEAF7E62/image-size/large?v=v2&px=999)
/Yianni