Public
Edited
Mar 19, 2023
1 fork
Insert cell
Insert cell
Insert cell
mutable vizLoaded = 1
Insert cell
url = "https://public.tableau.com/views/LayoffsAnalysisandVisualisation/LayoffsbyYearandQuarter"
Insert cell
options = ({
width : width,
height : 700,
hideTabs: true,
hideToolbar: true,
onFirstInteractive: function () {
mutable vizLoaded = 1;
}
});
Insert cell
placeholderDiv = html `<div></div>`;
Insert cell
viz = {
let oldViz = window.tableau.VizManager.getVizs()[0];
if (oldViz) {
mutable vizLoaded = 0
oldViz.dispose();
}
yield new tableau.Viz(placeholderDiv, url, options);
}
Insert cell
workbook =
{
if (vizLoaded == 1) {
yield viz.getWorkbook();
}
}
Insert cell
url1 = "https://public.tableau.com/views/LayoffsAnalysisandVisualisation/Layoffsallovertheglobe"
Insert cell
mutable vizLoaded1 = 1
Insert cell
viz1 = {
let oldViz = window.tableau.VizManager.getVizs()[0];
if (oldViz) {
mutable vizLoaded1 = 0
oldViz.dispose();
}
yield new tableau.Viz(placeholderDiv1, url1, options);
}
Insert cell
workbook1 =
{
if (vizLoaded1 == 1) {
yield viz1.getWorkbook();
}
}
Insert cell
placeholderDiv1 = html `<div></div><div>`;
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