Platform
Resources
Pricing
Sign in
Get started
Observable
The end-to-end solution for building and hosting better data apps, dashboards, and reports.
Workspace
Fork
Published
By
Mike Bostock
Edited
Dec 26, 2021
2 forks
Importers
47 stars
Insert cell
Insert cell
9+
tweet
(
"993222403663675392"
)
Insert cell
Insert cell
function
tweet
(
id
,
options
)
{
const
div
=
document
.
createElement
(
"DIV"
)
;
Promise
.
resolve
(
)
.
then
(
(
)
=>
twttr
.
widgets
.
createTweet
(
id
,
div
,
options
)
)
;
return
div
;
}
Insert cell
twttr
=
require
(
"https://platform.twitter.com/widgets.js"
)
.
catch
(
(
e
)
=>
window
.
twttr
||
Promise
.
reject
(
e
)
)
.
then
(
twttr
=>
new
Promise
(
resolve
=>
twttr
.
ready
(
resolve
)
)
)
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Show 12 comments
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
tweet
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
twttr
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML