Public
Edited
Apr 4, 2023
Insert cell
Insert cell
Insert cell
Insert cell
question = `
let selection= window.getSelection().getRangeAt(0);
let selectedContent = selection.extractContents();
var span= document.createElement("span");
span.style.backgroundColor='#ADD8E6';
span.style.fontWeight=900;
span.appendChild(selectedContent);
selection.insertNode(span);
`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
hideIt = `
var showHiddenData = document.createElement('style');
var data = document.querySelectorAll('.r-lrsllp');
data.forEach(d => {
d.setAttribute('style', 'display:none');
})
`
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