Platform
Resources
Pricing
Sign in
Get started
neatlogic
Workspace
Fork
Published
By
neatlogic
Edited
Mar 27, 2020
1 fork
Importers
1 star
Insert cell
md
`# error`
Insert cell
function
internalError
(
{
target
,
error
}
)
{
console
.
error
(
`INTERNAL ERROR : ${
target
} : ${
error
}`
)
;
}
Insert cell
// call this to add a warning icon to a graph and log an error to the console
function
error
(
{
target
,
error
}
)
{
console
.
error
(
`ERROR : ${
target
} : ${
error
}`
)
;
select
(
target
)
.
select
(
'.mg-chart-title'
)
.
append
(
'tspan'
)
.
attr
(
'class'
,
'fa fa-x fa-exclamation-circle mg-warning'
)
.
attr
(
'dx'
,
'0.3em'
)
.
text
(
'\uf06a'
)
;
}
Insert cell
select
=
require
(
"d3-selection"
)
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
internalError
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
error
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
select
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML