Published
Edited
Apr 14, 2021
1 fork
Importers
Insert cell
Insert cell
Insert cell
barChart = require("@nebula.js/sn-bar-chart")
Insert cell
lineChart = require("@nebula.js/sn-line-chart")
Insert cell
pieChart = require("@nebula.js/sn-pie-chart")
Insert cell
sankeyChart = require("@nebula.js/sn-sankey-chart")
Insert cell
funnelChart = require("@nebula.js/sn-funnel-chart")
Insert cell
mekkoChart = require("@nebula.js/sn-mekko-chart")
Insert cell
table = require("@nebula.js/sn-table")
Insert cell
gridChart = require("@nebula.js/sn-grid-chart")
Insert cell
bulletChart = require("@nebula.js/sn-bullet-chart")
Insert cell
kpi = require("@nebula.js/sn-kpi")
Insert cell
comboChart = require("@nebula.js/sn-combo-chart")
Insert cell
enigma = require("enigma.js")
Insert cell
schema = FileAttachment("12.170.2.json").json()
Insert cell
n = {
const { embed } = nebula;
const config = {
host: 'sense-demo.qlik.com',
appId: '133dab5d-8f56-4d40-b3e0-a6b401391bde',
}
const enigmaApp = await enigma
.create({
schema,
url: `wss://${config.host}/app/${config.appId}`,
})
.open();
const app = await enigmaApp.openDoc(config.appId);
const n = await embed(app, {
context: {
theme: 'light',
language: 'en-US',
constraints: {
active: false,
passive: false,
select: false,
},
},
types: [
{
name: 'barChart',
load: () => Promise.resolve(barChart),
},
{
name: 'lineChart',
load: () => Promise.resolve(lineChart),
},
{
name: 'pieChart',
load: () => Promise.resolve(pieChart),
},
{
name: 'sankeyChart',
load: () => Promise.resolve(sankeyChart),
},
{
name: 'funneChart',
load: () => Promise.resolve(funnelChart),
},
{
name: 'mekkoChart',
load: () => Promise.resolve(mekkoChart),
},
{
name: 'table',
load: () => Promise.resolve(table),
},
{
name: 'gridChart',
load: () => Promise.resolve(gridChart),
},
{
name: 'bulletChart',
load: () => Promise.resolve(bulletChart),
},
{
name: 'kpi',
load: () => Promise.resolve(kpi),
},
{
name: 'comboChart',
load: () => Promise.resolve(comboChart),
},
],
});
return n;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more